Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

RSS advice

Go to End

3 Posts   1048 Views


Community Member, 2 Posts

8 April 2009 at 11:04am

Hi there,

I have added the below code to display a RSS feed on my football.php page. I called the function "CustomRSSFeed()" on the and it did not run.....

class Football_Controller extends Page_Controller {

function CustomRSSFeed() {
$feed = new SimplePie("");
$output = new DataObjectSet();
if($items = $feed->feed->get_items(0, 10)) {
foreach($items as $item) {
$output->push(new ArrayData(array(
"Title" => $item->get_title(),
"Link" => $item->get_link()
return $output;


Am I going about this the right way? Any help or advice would be grateful as I am still getting my head around this style of programming.



Community Member, 904 Posts

9 April 2009 at 1:37am

Hi Miles

I guess this wiki page should help:


Community Member, 2 Posts

10 April 2009 at 2:17pm

Hey it did thanks! Also found this link.....