Hi,
I'm new to SilverStripe and I like the open concept. So I worked through the tutorials and now I'm stuck in tut 2.
To publish the latest news on the homepage, I wrote the following function as described in the tut:
class HomePage_Controller extends Page_Controller {
function LatestNews($num=5) {
$news = DataObject::get_one("NewsHolder");
return ($news) ? DataObject::get("NewsPage", "ParentID = $news->id", "Date DESC", "", $num) : false;
}
}
Now when I address the homepage in the browser I get the error
--> The website server has not been able to respond to your request.
The entry in the Apache access.log looks like this:
--> "GET /SilverStripe/ HTTP/1.1" 500 86
Anyone who can get me on the right way? Thanks in advance.
Christian