Yii Rss Feed Through A Controller


I’m just trying to knock up a RSS feed. I’m not sure how you’d set the layout to nothing. I’ve been doing it like this?

public function actionRss()



..... rest of code


In then used CListView to load the data.

Problems are that I’m still laoding all the assets css and js etc. And

<div id="yw0" class="list-view">

<div class="items">

So I’m guessing my approach is wrong. So What’s the Yii way?



Just seen this. http://www.yiiframework.com/wiki/20/how-to-generate-web-feed-for-an-application/

I guess I should have a look at this and updating for ZF2