i’m trying to change orginal path for layouts in my ZF application.
$viewsPath = '../application/_layouts';
$options = array('layoutPath' => $viewsPath, 'layout' => 'layout');
Zend_Layout::startMvc();
//Initializing Zend_View
$view = Zend_Layout::getMvcInstance()->getView();
$view->setBasePath($viewsPath);
ZF trying to find layout in /application/_layouts/scripts
addBasePath() in Zend_View_Abstract makes $this->addScriptPath($path . 'scripts');
I need to use /application/_layouts/layout.phtml instead of /application/_layouts/scripts/layout.phtml
How to make ZF ignore ‘scripts’ folder without reloading Zend_View_Abstract::addBasePath()?
If you’re using the standard
Zend_Application_Bootstrap, you can set these variables in your application.ini and the framework will do the rest: