title: Zend Navigation - Rendering a submenu
body: <p>I define all my pages in a XML file like the following:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configdata&gt;
  &lt;nav&gt;
      &lt;dashboard&gt;
          &lt;label&gt;Dashboard&lt;/label&gt;
          &lt;module&gt;default&lt;/module&gt;
          &lt;controller&gt;dashboard&lt;/controller&gt;
          &lt;action&gt;index&lt;/action&gt;
          &lt;title&gt;Die Schaltzentrale&lt;/title&gt;
      &lt;/dashboard&gt;
      &lt;user&gt;
          &lt;label&gt;User&lt;/label&gt; 
          &lt;module&gt;default&lt;/module&gt;
          &lt;controller&gt;user&lt;/controller&gt;   
          &lt;action&gt;index&lt;/action&gt;
          &lt;title&gt;Verwaltung der Benutzer&lt;/title&gt;
  
          &lt;userList&gt;                  
              &lt;module&gt;default&lt;/module&gt;
              &lt;controller&gt;user&lt;/controller&gt;   
              &lt;action&gt;index&lt;/action&gt;
              &lt;label&gt;Userliste anzeigen&lt;/label&gt;
          &lt;/userList&gt;
          &lt;newUser&gt;
              &lt;label&gt;User anlegen&lt;/label&gt; 
              &lt;module&gt;default&lt;/module&gt;
              &lt;controller&gt;user&lt;/controller&gt;   
              &lt;action&gt;new&lt;/action&gt;
          &lt;/newUser&gt;
          &lt;editUser&gt;
              &lt;label&gt;User bearbeiten&lt;/label&gt;  
              &lt;module&gt;default&lt;/module&gt;
              &lt;controller&gt;user&lt;/controller&gt;   
              &lt;action&gt;edit&lt;/action&gt;
          &lt;/editUser&gt;
      &lt;/user&gt;
  &lt;/nav&gt;  
  &lt;/configdata&gt;
  </code></pre>
  
  <p>In my bootstrap I setup my navigation like this:</p>
  
  <pre><code>    protected function _initNavigation()
      {
          $this-&gt;bootstrap('layout');
          $layout = $this-&gt;getResource('layout');
          $config = new Zend_Config_Xml(APPLICATION_PATH . '/configs/navigation.xml','nav');
          $view = $layout-&gt;getView();
          $navigation = new Zend_Navigation($config);
          $view-&gt;navigation($navigation); 
          Zend_Registry::set('Zend_Navigation',$navigation);
      }
  </code></pre>
  
  <p>This setup enables me to render my main menu with the following lines:</p>
  
  <pre><code>$partial = array('menu.phtml', 'default');
  $this-&gt;navigation()-&gt;menu()-&gt;setPartial($partial);
  echo $this-&gt;navigation()-&gt;menu()-&gt;render();
  </code></pre>
  
  <p>So far so good. My problem is now to render a particular submenu. Let's say I want to render a menu with all actions of the user controller. I tried to render it with:</p>
  
  <pre><code>$page = $this-&gt;navigation()-&gt;findOneBy('controller','user');
  echo $this-&gt;navigation()-&gt;menu()-&gt;renderMenu($page);
  </code></pre>
  
  <p>But I got no output. I also tried to obtain an output by setting the minDepth or maxDepth option without any success. Has anyone a hind for me, how I can bring it to work?</p>