Zend Layout in ZF2 -


how can set default layout in zf2 if layout folder out side module directory

enter image description here

you can set layout anywhere want doesn't have in modules directory.

just set inside modules config

'view_manager' => array(     'display_not_found_reason' => true,     'display_exceptions'       => true,     'doctype'                  => 'html5',     'not_found_template'       => 'error/404',     'exception_template'       => 'error/index',     'template_map' => array(         'layout/layout'           => '/anypath/you/want/view/layout/layout.phtml',     ),     'template_path_stack' => array(        '/anypath/you/want/view',     ), ), 

Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

php - Calling a template part from a post -

How to mention the localhost in android -