[eluser]karloff[/eluser]
I'm trying to incorparate 2 rss feeds with the rss parser from the wiki.
However I can't get the second feed retrieved? Can some tell me what is the best way to do it, or what i'm doing wrong
controller
Code:
//Load the shiny new rssparse
$this->load->library('RSSParser', array('url' => 'http://ws.audioscrobbler.com/1.0/user/junkie_scum/recenttracks.rss', 'life' => 0));
//Get six items from the feed
$lastfm = $this->rssparser->getFeed(6);
//Load the shiny new rssparse
$this->load->library('RSSParser', array('url' => 'http://feeds.delicious.com/rss/theblackcat', 'life' => 0));
//Get six items from the feed
$delicious = $this->rssparser->getFeed(6);
view
Code:
<ul class="rss">
<? foreach ($lastfm as $item) :
echo "<li>";
echo '<a href=" '.$item['link'].'">';
echo $item['title'];
echo "</a>";
echo "</li>";
endforeach; ?>
</ul>
<h2>Delicious</h2>
<ul class="rss">
<? foreach ($delicious as $item2) :
echo "<li>";
echo '<a href=" '.$item2['link'].'">';
echo $item2['title'];
echo "</a>";
echo "</li>";
endforeach; ?>
</ul>