Hello everybody,
as far as I understood the documentation the controller function customise should add variables that I can use in my template file. The tutorial describes this functionality in the context of a search. Now I want to use the customisation if a Page is displayed in general.
I thought I have to place that function into the controller's init method. For example to use "Testtitle" as variable I do:
class Page_Controller extends ContentController {
function init() {
parent::init();
return $this->customise(array('Testtitle' => 'hello world'));
}
}
Unfortunately that does not work. I know that the usual way to this is to create a new controller function Testtitle which retuns "hello world" but the real example is a little bit more complex than the one above and I have to use customise
Thanks in advance