title: how to use special layouts in zend framework 2?
body: <p>i have a bare bones zf2 application and i have 2 modules (Users and Album). </p>
  
  <p>They both have their own layouts but i want to use the layout from Album for the Users, just to keep them a bit more consistent.</p>
  
  <p>Im not sure what is the best way to delegate what layout a module should use.. from the controller __contruct, or on each individual action or in the module.config.php.</p>
  
  <p>maybe here:</p>
  
  <pre><code>'template_map' =&gt; array(
          'layout/top_nav'        =&gt; __DIR__ . '/../view/layout/top_nav.phtml',
          'layout/layout'         =&gt; __DIR__ . '/../view/layout/layout.phtml', 
  
            ^^ probably i should set this path to the layout i want to use ^^
  
          'posts/index/index'     =&gt; __DIR__ . '/../view/posts/index/index.phtml',
          'error/404'             =&gt; __DIR__ . '/../view/error/404.phtml',
          'error/index'           =&gt; __DIR__ . '/../view/error/index.phtml',
      ),
  </code></pre>
  
  <p>any ideas? maybe the best practices?</p>
  
  <p>thanks</p>
  
  <p>edit: i just did this and it worked:</p>
  
  <pre><code>'layout/layout'         =&gt; __DIR__ . '/../../album /view/layout/layout.phtml',
  </code></pre>
  
  <p>but i'm still not sure if this is best practice.</p>
  
  <p>maybe i can setup multiple <code>template_map</code> arrays and use them in the <code>User</code> controller, in my case</p>