How to generate Web feed for an application

Comparing #1 with #2

Revision #2 was created by qiang qiang on Mar 18, 2009, 5:45:05 PM.

Added URL rewriting paragraph.

Content

[...]
~~~
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.