i'm working on zf2 and try to use 2 differents layouts. 1 layout for a public module and another one (private layout") for all the others. Its works pretty well but my zfcuser module in the public module use the other layout :/ i tried this :
'template_map' => array(
'zfc-user/user/login' => __DIR__ . '/../view/layout/blank.phtml', // blank is my public layout
),
Instead of get the form in my layout, i get my form in the public layout AND in the "private" layout ... Does someone can help me ?
The code evan provides here http://blog.evan.pro/module-specific-layouts-in-zend-framework-2 will do what you need with one minor change, replace
__NAMESPACE__
with'ZfcUser'
so that you're listening for ZfcUser controller actionsAdded to composer.json
Created /module/Application/view/layout/blank.phtml
Added this to /config/autoload/global.php
Finally to /module/Application/config/module.config.php