I have a question about layouts in Zend Framework. This is my structure of my project:
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
Now how can I fix this that I have seperate layouts?
Just place another layout in the layout/scripts
folder and tell any module, controller or action to use that other layout instead of the default layout.
If you want to let a controller use a different layout, you can place the following in your init()
$this->_helper->layout->setLayout('layoutname');
You can do that respectively for specific actions or for a whole module.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With