On Wed, Mar 18, 2009 at 3:49 PM, Deepak <[email protected]> wrote: > On Wed, Mar 18, 2009 at 10:27 PM, Robert Castley > <[email protected]> wrote: >> Is the feed pubically available? I can have a test this end for you then. >> >> - Robert >> > > Not yet. Still in development. Basic structure of my view script looks like > this > > ========================== > <?= '<?xml version="1.0" encoding="utf-8"?>' ?> > <?= '<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">'?> > <?= '<channel>'?> > > <?= '<title>MySite</title>'?> > <?= '<link>http://localhost</link>'?> > <?= '<description>Test Description</description>'?> > <?= '<language>en-us</language>'?> > > <? if ($this->feeds->getTotalItemCount() !== 0): ?> > <? foreach ($this->feeds as $feed): ?> > <?= '<item>'?> > > <?= '<title>'?> > <?= $this->escape($feed['title']) ?> > <?= '</title>'?> > > <?= '<link>'?> > <?= $this->url(array('controller'=>'index'), 'default', true)?> > <?= '</link>'?> > > <?= '<description>'?> > <?= $this->escape($feed['details']) ?> > <?= '</description>'?> > > <?= '<pubDate>'?> > <?= $this->escape($feed['date']) ?> > <?= '</pubDate>'?> > > <?= '<category>'?> > <?= $this->escape($feed['type']) ?> > <?= '</category>'?> > > <?= '</item>'?> > <? endforeach ?> > <? else: ?> > <?= '<title>'?> > <?= 'Sorry! There are no items to feed right now.' ?> > <?= '</title>'?> > <? endif ?> > > <?= '</channel>'?> > <?= '</rss>'?> > =========================== > > Probably you can suggest me it there is something wrong with this code.
Yeah, first of all -- why do you wrap everything in short tags? Then, I'd suggest you use Zend_Feed_Builder and follow the example at the bottom: <http://framework.zend.com/manual/en/zend.feed.importing.html#zend.feed.importing.custom.dump> Till
