Burn Feeds in Zend Framework

submit to reddit

Continuing with the Zend Framework’s series, here’s another one – how to burn your data into RSS feed within ZF.

Fairly simple. Collect all the data into an array and than …

$feed = Zend_Feed::importArray($feedArray, 'rss');
$feed->send();

Related posts:

  1. Zend Framework and Media RSS
  2. MySQL Expressions in Zend Framework
  3. Can Twitter Replace the RSS Feed Readers

You are a GREAT developer? Click here to answer the weekly quiz!

This entry was posted in micro tutorial, PHP, zend framework and tagged , , , . Bookmark the permalink.

One Response to Burn Feeds in Zend Framework

  1. I’d reccommend against using Zend_Feed::importArray(), in favor of using Zend_Feed_Writer. The former is deprecated and scheduled for removal in 2.0; the latter is a much more robust solution with support for a variety of formats and much better encoding support.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">