News Feed
Sections




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

Alexander Netkachev's Blog:
Syndicate content with Zend Framework Zend_Feed classes
April 02, 2007 @ 07:44:00

Alexander Netkachev has posted a quick tutorial today to his blog about how to use the Zend Framework (specifically the Zend_Feed component) to create an XML feed for your site.

This article explains basics of content syndications and demonstrates how to use Zend Framework Zend_Feed classes for consuming a news feed of your site.

His format of choice is Atom, slightly different from the RSS most sites use. He includes a sample document to show some of the differences (assuming you know the RSS format, of course) - both complex and simple versions. Also included is a UML layout of the Zend_Feed class, showing all of the methods and properties therein.

With the groundwork laid, he starts on the sample application - creating an Atom feed from a PHP array of data. He grabs the information from the database and pulls it into the controller where it's parsed and massaged into the array format the output needs. Then it's just a matter of passing it to the view and voila - an Atom feed worthy of consumption.

0 comments voice your opinion now!
syndicate content zendframework zendfeed atom format syndicate content zendframework zendfeed atom format


blog comments powered by Disqus

Similar Posts

Padraic Brady's Blog: The Zend Framework and Microformats: Zend_Microformat Proposed

Zend Developer Zone: Zend Framework- Coming soon to a Command Line near You!

Ralph Schindler's Blog: Composite Rowsets For Many-To-Many Relationships Via Zend_Db_Table

Arnold Daniels' Blog: How I PHP: The Output Handler - Continued

DevShed: Introducing Mediator Classes in PHP 5


Community Events





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


refactor framework language developer community series interview unittest install list laravel threedevsandamaybe code release testing podcast introduction experience opinion symfony2

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