Esempio n. 1
0
 public function index()
 {
     $feed = "http://rss.cnn.com/rss/cnn_topstories.rss";
     $rss = new RssDisplay($feed);
     $feed_data = $rss->getFeedItems();
     $channel_title = $feed_data->channel->title;
     $this->set('rss_title', $channel_title);
 }
Esempio n. 2
0
 public function index()
 {
     $feed = "http://feeds.feedburner.com/IIB-Headlines";
     $rss = new RssDisplay($feed);
     $feed_data = $rss->getChannelInfo();
     $channel_title = $feed_data->channel;
     $this->set('rss_title', $channel_title);
     $story_data = $rss->getFeedItems(8);
     $story_items = $story_data->channel->item;
     $this->set('story_items', $story_items);
     //$this->set('story_title', $story_title);
 }