I know that i have to use customise() and renderWith() functions to deliver all necessary data and set proper template/templates. Usually it works like this:
$this->customise($data)->renderWith(array('SomeTemplateName', ...));
And in this specific scenario $this points to current controller. What if i want to use different controller instead of current one? How to get this external controller? I've tried to use:
$contr = ModelAsController::controller_for($page);
$contr->init();
return $contr->customise($data)->renderWith(array('SomeTemplateName', ...));
But it doesn't work. I'm thinking if moving all rendering code to external Controller was good idea (it's not my code, i have to base on it and make changes).