Revision #2 has been created by qiang on Mar 18, 2009, 5:45:05 PM with the memo:
Added URL rewriting paragraph.
« previous (#1) next (#4) »
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 differentce 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.