Burn Feeds in Zend Framework

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();

One thought on “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 *