Difference between #1 and #6 of
How to generate Web feed for an application

Changes

Title unchanged

How to generate Web feed for an application

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

[...]
~~~
http://www.example.com/index.php?r=site/feed
~~~

Using the [URL management](/doc/guide/topics.url) feature of Yii, we can beautify the above URL to something like `http://www.example.com/feed.xml`.
 
 
We can insert this link to the head section of a page using the following code:
[...]
```

We can also use [CHtml::linkTag()] to directly insert the link tag at the current place in a page. The differen
tce between these approaches is that the former code can be written anywhere while the latter can only appear in the head section of a view (or layout). The [Zend_Feed](http://www.zendframework.com/manual/en/zend.feed.html) component has many other features. If you are interested, please refer to its documentation.
 
 
3 0
9 followers
Viewed: 37 454 times
Version: 1.1
Category: Tutorials
Tags:
Written by: qiang
Last updated by: Yang He
Created on: Feb 28, 2009
Last updated: 11 years ago
Update Article

Revisions

View all history