News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

MaltBlue.com:
Zend Framework - How To Implement RSS Feeds the Easy Way
July 12, 2012 @ 10:08:01

On the MaltBlue blog Matt Setter has a new tutorial posted about creating RSS feeds quickly and easily with the help of the Zend Framework and context switching.

Ever wanted to know how to take an existing Zend Framework application where you have posts, records, news or anything else stored in a data source and updated regularly, and make it available as a feed for your users that they can subscribe to? Well today, that's what I want to show you. Recently, during the development of the burgeoning PHP cloud development casts site, I had just that situation.

He shows you how to set up some of the routing for the RSS and Atom feeds, pointing them to specific module/controller/action paths for handling. He then creates a "_getFeed()" method that pulls together the needed content and uses the Zend_Feed_Writer_Feed component to create the feed of the correct type. This is then exported, returned and - thanks to a bit more configuration - turned into a correctly-formatted feed.

0 comments voice your opinion now!
zendframework rss atom feed tutorial zendfeed


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: Back to Basics: Managing PHP Configuration php.ini Directives

DevShed: Implementing the commit() and rollback() Methods with mysqli and PHP 5

Juozas Kaziukenas' Blog: SQL Native Client as MSSQL driver for Zend Framework

Rob Allen's Blog: Translations of my Zend Framework Tutorial for ZF 1.10 & 1.11

Tibo Beijen's Blog: Catching PHP Exceptions: Except the unexpected


Community Events











Don't see your event here?
Let us know!


release language component composer podcast unittest application hhvm performance facebook install security introduction hack package symfony2 overview opinion database framework

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework