title: How to call default layout in ZF2 for all modules or selected modules?
body: <p>I have developed dashboard.phtml in my module Admin/view/layout/dashboard.phtml</p>
  
  <p>Now I have developed another module like restaurants now I want to use dashboard.phtml in all action of restarunts module I tried below.</p>
  
  <p>my module.config.php</p>
  
  <pre><code> 'view_manager' =&gt; array(
      'template_map' =&gt; array(
          'layout/default' =&gt; __DIR__ . '/../../Admin/view/layout/dashboard.phtml'
      ),
      'template_path_stack' =&gt; array(
          'restaurants' =&gt; __DIR__ . '/../view',
  
      ),
  </code></pre>
  
  <p>my indexaction of restaurantsController.php</p>
  
  <pre><code>public function indexAction()
  {
  
     $viewModel = new ViewModel();
     $viewModel-&gt;setTemplate('layout/default');
     $restaurant_info_array = array();
     $restaurant_info = $this-&gt;getRestaurantsTable()-&gt;fetchAll();
      $i = 0;
      foreach ($restaurant_info as $ri)
      {
          $restaurant_info_array[$i]['id'] = $ri-&gt;id;
          $restaurant_info_array[$i]['name'] = $ri-&gt;name;
          $restaurant_info_array[$i]['published'] = $ri-&gt;published;
          $restaurant_info_array[$i]['email'] = $ri-&gt;email;
          $is_menu_available = $this-&gt;getRestaurantsTable()-&gt;getRestaurantsMenu($ri-&gt;id);
          $restaurant_info_array[$i]['res_menu'] = count($is_menu_available);
          $i = $i+1;
      }
  
      $viewModel-&gt;setVariables(array(
              "restaurants"=&gt;$restaurant_info_array
      ));
  </code></pre>
  
  <p>it is not working please help me if I call dashboard as my default layout for my admin side modules it will be great coz It is not logical same dashboard.phtml lies in all folders of my modules.</p>