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. Thnanks for the time.
