How to change layout for module level in zend framework 2?
Answer Posted / Ravi Sharma
To change the layout for a specific module in Zend Framework 2, you can follow these steps:
1. Create or modify the module's layout file (e.g., module/Application/view/layout/layout.phtml).
2. In the Module's getServiceConfig() method, set the layout for your module by specifying the layout file path in the view_manager configuration under the 'module_listener_options' array.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers