Hi guys,
I'm having this function in my TipHolder_Controller (extends Page_Controller):
function edit()
{
$output = array(
"EditForm" => $this->EditForm,
"Title" => "Wijzig Je Locatie"
);
return $this->customise($output)->renderWith(array('EditForm', 'Page'));
}
When doing that I get this error:
FATAL ERROR: ViewableData_Customised::obj() 'Title' was requested from the array data as an object but it's not an object. I can't cast it.
I want to change the normal page title from within that action...
I'm actually not seeing the difference (yet) with what there's going on in the search tutorial - results method, where it's not working for me either
see http://doc.silverstripe.com/doku.php?id=tutorial:4-site-search#showing_the_results