Rss Feed |
[eluser]Dimitrio[/eluser]
Hello, Using CI, my webapp has a home page that populates with data from the DB, think of it as a microbloggin clone. How do I go about creating a rss feed for it? Sorta new to PHP. Thnx.
[eluser]pistolPete[/eluser]
http://www.derekallard.com/blog/post/bui...de-igniter
[eluser]Dimitrio[/eluser]
Thank you so much, I actually tried googling it, but to no avail. That will work perfectly. D
[eluser]giannis[/eluser]
Thanks for the instructions Derek. Works like a charm. Just a small observation...Shouldnt we add at the top of the rss view the following : Code: header("Content-Type: text/xml"); That because although the modern browsers render the xml document and present it, IE 6 (how bizzare !!!) cannot do this. Thus if you try to open your rss feed link with IE 6 you will get an error message. By adding the above, IE 6 will just display the xml document and not complain about the output of the script.
[eluser]pistolPete[/eluser]
It depends on how "valid" you want your feed to be. http://feedvalidator.org/docs/warning/En...match.html Quote:RSS feeds should be served as application/rss+xml (RSS 1.0 is an RDF format, so it may be served as application/rdf+xml instead). Atom feeds should use application/atom+xml. Alternatively, for compatibility with widely-deployed web browsers, any of these feeds can use one of the more general XML types - preferably application/xml. |
Welcome Guest, Not a member yet? Register Sign In |