This widget uses SimplePie php library to read a given feed, process it and output it on a page. Some basic css has been specified to lay the widget out in 3 columns but the intention is that it mostly dumps the html into the page ready for styling.
The widget loads the feed in with Ajax so as not to hold up other page loading activities.
Tested on Yii 1.1.11
Copy the files into the extensions directory
In your main site config (main.php) file you must add an entry in controllerMap
'controllerMap'=>array( 'YiiFeedWidget' => 'ext.yii-feed-widget.YiiFeedWidgetController' ),
- Use the widget in a view specifying the url of the feed to grab and the number of items to grab from the feed. (0 for all items)
<!-- Feed widget --> <?php $this->widget( 'ext.yii-feed-widget.YiiFeedWidget', array('url'=>'http://www.mysite.com/feed','limit'=>3) ); ?>
Uses SimplePie php library for feed processing http://simplepie.org/
SimplePie depends on IDNA Convert (idna_convert.class.php) http://www.phpclasses.org/browse/file/5845.html