Welcome Guest, Not a member yet? Register   Sign In
Integrating SimplePie RSS
#1

[eluser]Jezz[/eluser]
Hello All,

I have need of some RSS parsing stuff in my first ever CI project and was wondering what the best method was.

I was planning to just import simple pie, and see that this has already been done by others within CI:


http://www.nextbigleap.com/blog/developm...deigniter/


I was just wondering if this the best approach... or whether anyone has some other resources they would be able to share?

Thanks, Jez
#2

[eluser]Jelmer[/eluser]
Just put it into your libraries directory as Simplepie.php

And then load it like any other library:
Code:
$this->load->library('simplepie');

And then use it like this:
Code:
$this->simplepie->set_feed_url($url)

As far as I remember that's all I did, didn't change anything else.
#3

[eluser]Jezz[/eluser]
Thanks Jelmer,
#4

[eluser]Daniel Peraza[/eluser]
Hi guys!, what if I need not only to parse a RSS Feed, but to automatically generate it from data stored in a DB? does SimplePie allow me to do this? (obviously, the data will need to be transformed by a controller into a RSS view file).
#5

[eluser]pistolPete[/eluser]
Have a look at building-an-rss-feed-in-code-igniter.




Theme © iAndrew 2016 - Forum software by © MyBB