![]() |
2 rss feeds - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: 2 rss feeds (/showthread.php?tid=12161) |
2 rss feeds - El Forum - 10-08-2008 [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 view Code: <ul class="rss"> 2 rss feeds - El Forum - 10-12-2008 [eluser]karloff[/eluser] nobody? 2 rss feeds - El Forum - 10-12-2008 [eluser]Pascal Kriete[/eluser] The loader is a singleton interface. Basically means that reloading a library doesn't create a new object, but returns an existing one. Two options: Code: // Create a new instance 2 rss feeds - El Forum - 10-13-2008 [eluser]karloff[/eluser] thanks for the reply, i'm not sure how you o about setting the new instance? could you explain further. what are the $params and how should i set the new feed? thanks 2 rss feeds - El Forum - 10-13-2008 [eluser]Pascal Kriete[/eluser] Have you done object oriented programming before karloff? Both of the examples I have given should be functional as is. I used $params for the parameter array for the sake of brevity. Code: $params = array('url' => 'http://ws.audioscrobbler.com/1.0/user/junkie_scum/recenttracks.rss', 'life' => 0); 2 rss feeds - El Forum - 10-14-2008 [eluser]karloff[/eluser] no i haven't, it is on the long list to learn tho ![]() I have tried that and it seems not too work. I set up a test page and the feed is not responding even by itself. any idea why? |