How to Change layout for module level in Zend Framework 2?
- Open the
module.config.php
of the module and its path ismodule\{module}\config\module.config.php
Add/Update given code in the view_manager array
'template_map' => array(
'layout/layout' => __DIR__ . '/../view/layout/layout.phtml', //Setup the layout file here
'error/404' => __DIR__ . '/../view/error/404.phtml', //Setup the error from here
),
BY Best Interview Question ON 22 Feb 2019