Zend framework 如何在zend zf1模块中设置布局

Zend framework 如何在zend zf1模块中设置布局,zend-framework,Zend Framework,我的dir i项目是: var -www -appwar -s1 -application -controllers -models -modules -quests -controllers -models -views -scripts main.phtm

我的dir i项目是:

var
 -www
   -appwar
     -s1
       -application
         -controllers
         -models
         -modules
           -quests
            -controllers
            -models
            -views
              -scripts
                main.phtml
         -views
          -scripts
            layout.phtml
在主应用程序中,我使用layout.phtml,但在添加模块和控制器i代码时

$this->_helper->layout->setLayout('main');
一切都很好,但我想使用从主项目的布局,当我改变为

$this->_helper->layout->setLayout('layout'); or 
$this->_helper->layout->setLayout('/application/views/scripts/layout');
不起作用:(你知道我该怎么做吗?

在setLayout()之前试试这个:


我做了$this->u-helper->layout->setLayoutPath('var/www/appwar/s1/application/views/scripts/');$this->u-helper->layout->setLayout('main'),但仍然没有做任何事情。可能我的主引导映射有问题。
// If APPLICATION_PATH == '/var/www/appwar/s1/application'
$this->_helper->layout->setLayoutPath(APPLICATION_PATH . '/views/scripts');