For convenience, ZF automatically sets the script presentation path as the module /views/scripts/controller/action.phtml
You can add the script path through $view->addScriptPath('/path/to/view/scripts') , which will add this new path to the stack of available script paths. First, it checks the last set, then checks it until it finds a file.
Or you can reset the script path through $view->setScriptPath('/path/to/view/scripts')
If you need to do this for the controller, put this in your _init () method. If you need this for your entire application, I would recommend inserting it into your Bootstrap.
I believe this can also be placed in application.ini via: resources.view.basePath = "/path/to/views/"
See http://framework.zend.com/manual/en/zend.view.controllers.html
source share