No help? Is this just something Zend can't do right now, and I need to build
the feed by hand?

-- Phillip Winn -- http://blogcritics.org/ -- 214/402-9466 --


On Mon, May 4, 2009 at 4:26 PM, Phillip Winn <[email protected]> wrote:

> 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/'<http://www.buy.com/rss/module/newsandreviews/%27>
> );
> [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 --
>

Reply via email to