|
|||
|
I know this subject has been killed but I don't seem to see anything that I'm looking for...
I have setup a module in the bootstrap called zone which is working fine: Code:
'zone' => $config->paths->base . 'include/zone/Controllers')); So I have my IndexController.php in the zone/Controllers dir and the class is called class zone_IndexController extends CustomControllerAction (CustomControllerAction) is my own. inside I have the normal: Code:
public function indexAction()
{
}
Code:
public function statusAction()
{
}
it says "Invalid Controller Specified" but if I goto: http://www.mydomain.co.uk/zone/index/status it works but wants me to add a .tpl to index/status.tpl - why is this not asking me to create a template in zone/index.tpl or status.tpl ?? Can someone please advise me on this - it's driving me crazy! Kind regards Nick |
|
|||
|
By default the viewrenderer looks for viewscripts in zone/views/scripts/controller/action.suffix
So the script is named after the action, but should be placed in a folder named after the controller. To change this behaviour take a look at the method "setViewScriptPathSpec" in the viewrenderer. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|