How to Change layout for module level in Zend Framework 2?

  • Open the module.config.php of the module and its path is module\{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

Suggest An Answer

No suggestions avaliable!

Latest post from Zend 2 Framework Interview Questions

Ask Question