Here is the code I have:
$this->getView()->setScriptPath($templatePath);
$this->_helper->viewRenderer($page);
This code is handled in the Core_PageController view action. The problem I have is now the view object looks for my script files in $templatePath/page
since page is the controller. What I'd like is for the view object to look in just the $templatePath
directory path (without the page directory);
Thanks for the help!
You can instruct the
ViewRenderer
to not use the controller name as part of the view script path.To do that, try:
More info on the ViewRenderer helper.