Different Layout in the Same Module in Zend Framework 2
If you want to use a different layout in the same module using Zend Framework 2, just use the example bellow inside your action:
1 2 3 |
|
This is going to use “new_layout.phtml” file as the layout file, ignoring the default layout of the module.