Hi,

 

everything works fine in our development environment, but not on our production 
server, even with development settings. View scripts are all there.

 

in application.ini:

 

resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"

 

module controller:

 

class Access_LoginController extends Zend_Controller_Action

{

    public function indexAction()

    {

        Zend_Layout::getMvcInstance()->setLayout('access/login', true);

    }

}

 

 

Expected is that Zend_Layout::getMvcInstance returns the Instance, but I´ll get 
null, so the setLayout() fails. If I try to envoke $this->bootstrap('layout') 
in bootstrap I´ll get:

 

Fatal error: Uncaught exception 'Zend_Application_Bootstrap_Exception' with 
message 'Resource matching "layout" not found' in 
/srv/www/nonssl/aok-qs/library/Zend/Application/Bootstrap/BootstrapAbstract.php:698
 Stack trace: 

#0 
/srv/www/nonssl/aok-qs/library/Zend/Application/Bootstrap/BootstrapAbstract.php(633):
 Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('layout') 

#1 
/srv/www/nonssl/aok-qs/library/Zend/Application/Bootstrap/BootstrapAbstract.php(586):
 Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap('layout') 

#2 /srv/www/nonssl/aok-qs/application/Bootstrap.php(89): 
Zend_Application_Bootstrap_BootstrapAbstract->bootstrap('layout') 

#3 
/srv/www/nonssl/aok-qs/library/Zend/Application/Bootstrap/BootstrapAbstract.php(673):
 Bootstrap->_initMyTest() 

#4 
/srv/www/nonssl/aok-qs/library/Zend/Application/Bootstrap/BootstrapAbstract.php(626):
 Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('mytest') 

#5 
/srv/www/nonssl/aok-qs/library/Zend/Application/Bootstrap/BootstrapAbstract.php(586):
 Zend_App in 
/srv/www/nonssl/aok-qs/library/Zend/Application/Bootstrap/BootstrapAbstract.php 
on line 698

 

Someone any ideas?

 

Greetings from Germany

 

Marc

 

Reply via email to