Welcome Guest, Not a member yet? Register   Sign In
rssparser... delicious empty
#1

[eluser]karloff[/eluser]
i'm trying to parse a couple of feeds, however the delicious feed comes back empty... can anyone spot a reason why?

i'm trying to use this solution to multiple feeds
http://ellislab.com/forums/viewthread/53780/P30/#281088

controller

Code:
$this->load->library('rssparser', 3);
        $this->rssparser->parse('http://feeds.delicious.com/rss/recent');
        $data['delicious']        = $this->rssparser->getFeed(6);
        $this->rssparser->parse('http://ws.audioscrobbler.com/1.0/user/username/recenttracks.rss');
        $data['lastfm']        = $this->rssparser->getFeed(6);

view
Code:
<ul>
        &lt;? foreach ($delicious as $item) :
    echo "<li>";
    echo '<a href="'.$item['link'].'">';
    echo $item['title'];
    echo "</a>";
    echo "</li>\n";

  endforeach;  ?&gt;
      </ul>
#2

[eluser]pistolPete[/eluser]
What CI version are you using?
If you want to pass arguments to a library, you have to put them in a array since 1.7.0.
#3

[eluser]karloff[/eluser]
i'm using 1.7.1

could you give me an rough example of passing it to an array and out.. ?
#4

[eluser]pistolPete[/eluser]
In your above link there is already an example about how to load the library:
Code:
$this->load->library('RSSParser', array('url' => 'http://rss.news.yahoo.com/rss/software', 'number' => 7));
#5

[eluser]karloff[/eluser]
sorry... iwas actually just reading that.... sorry for jumping the gun and being a complete idiot..

cheers man
#6

[eluser]karloff[/eluser]
hey, i'm back for 'another silly question'... probably...

how can i access the array of data from my view... the print_r($delicious) is throwing up a lot of rubbish... i'm a bit lost




Theme © iAndrew 2016 - Forum software by © MyBB