yii-feed-widget This widget reads a a specified rss feed and displays feed entries in a view.

  1. Requirements
  2. Usage
  3. Resources

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


  1. Copy the files into the extensions directory

  2. In your main site config (main.php) file you must add an entry in controllerMap

     'YiiFeedWidget' => 'ext.yii-feed-widget.YiiFeedWidgetController'
  1. 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 -->


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

1 0
2 569 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Web Service
Developed by: Richard Walker
Created on: Aug 5, 2012
Last updated: 11 years ago


show all

Related Extensions