Hello,
I just started to learn Silvesrstripe. I follow the tutorials and unfortunately I encounter a problem by doing the steps in the second tutorial (extending-a-basic-site).
When I try to add a RSS feed to my news section I get this error when I try to open the rss in my browser:
Action 'rss' isn't allowed on class ArticleHolder_Controller.
I cannot see what I've done wrong. This is the code of the ArticleHolder_Controller:
<?php
class ArticleHolder extends Page {
private static $allowed_children = array('ArticlePage');
}
class ArticleHolder_Controller extends Page_Controller {
public function rss() {
$rss = new RSSFeed($this->Children(), $this->Link(), "The coolest news around");
return $rss->outputToBrowser();
}
}
Any help is very much appreciated!
Stefan