I am trying to set up modules without my Zend Framework application and am wondering how to configure the module to use its own layout script.
I am hoping to define it within my application.ini file, but am not sure what to do...
I have tried:
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules.layout.layout = "dietplan"
resources.modules.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
and this...
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
dietplan.resources.layout.layout = "dietplan"
dietplan.resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
But am getting nowhere.
Any ideas?
Not possible by default, you need an Controller Plugin. Very good Tutorial :
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.