I'm having a deuce of a time getting Zend_Feed to create a feed with some
custom namespace elements in it.
I've tried various combinations; the last one is this:
$feed = new Zend_Feed_Rss();
Zend_Feed::registerNameSpace('newsAndReviews', '
http://www.buy.com/rss/module/newsandreviews/');
[in a loop]
$entry = new Zend_Feed_Entry_Rss();
That combo gets me:
Fatal error: Call to a member function getHeader() on a non-object in
/home/pwinn/digitalus-dev/library/Zend/Feed/Abstract.php on line 94
No idea where in the stack that's coming from, but I'm *guessing* the
problem is that I'm attempting to use Zend_Feed_Rss as a constructor, and I
shouldn't. I don't know what to use, however!
I'm successfully creating several feeds that don't require custom namespace
elements, but this one can't use the standard importArray method, so I'm
stuck. Please help!
-- Phillip Winn -- http://blogcritics.org/ -- 214/402-9466 --