title: Bootstrapping Zend Layout and include navigation resource
body: <p>I have a problem with rendering navigation menu when I use the following bootstrap:</p>
  
  <pre><code>public function _initViewHelpers()
  {
      $this-&gt;bootstrap('layout');
      $layout = $this-&gt;getResource('layout');
      $view = $layout-&gt;getView(); // Never inits navigation resource?
  
      $view-&gt;headTitle()-&gt;setSeparator(' - ')
           -&gt;headTitle('Test');
  
      $role = ($this-&gt;_auth-&gt;getStorage()-&gt;read() === null) ? 'guest' : $this-&gt;_auth-&gt;getStorage()-&gt;read()-&gt;role;
      $view-&gt;navigation()-&gt;setAcl($this-&gt;_acl)-&gt;setRole($role); 
  }
  </code></pre>
  
  <p>In my <code>layout.phtml</code> I have:</p>
  
  <pre><code>echo $this-&gt;navigation()-&gt;menu();
  </code></pre>
  
  <p>And in my <code>application.ini</code> I have:</p>
  
  <pre><code>resources.navigation.pages.index.label = "Home"
  resources.navigation.pages.index.title = "Go Home"
  resources.navigation.pages.index.controller = "index"
  resources.navigation.pages.index.action = "index"
  resources.navigation.pages.index.order = -100
  resources.navigation.pages.index.route = "default"
  </code></pre>
  
  <p>Issuing the <code>$view = $layout-&gt;getView();</code> results in my navigation menu not being rendered. If I comment that part out, it renders fine.</p>
  
  <p>How can I set the title, and acl role in the bootstrap, and still render my menu correctly?</p>