O.K, newbie question.
I have put the following code into a Page called NewPage.php:
class NewPage extends Page {
static $db = array(
);
static $has_one = array(
);
}
class NewPage_Controller extends Page_Controller {
function newFunction1() {
return DataObject::get("Page", "ParentID=0");
}
}
In NewPage.ss I call newFunction1 by using:
<% control newFunction1 %>
<li><a href="$Link" title="Go to the $Title.XML page"><span>$MenuTitle.XML</span></a></li>
<% end_control %>
When I then access the page, I get the following error:
ERROR:
Error
The website server has not been able to respond to your request.
What have I missed?