title: Zend_Navigation submenu UL class set?
body: <p>I am using Twitter Bootstrap on a project and their navigation system is quite awesome.
  The issue is that I need Zend_Navigation to set the UL class on submenus and Im not
  able to achieve that.</p>
  
  <p>I have a plugin that on postDispache do this:</p>
  
  <pre><code>$layout = Zend_Layout::getMVCInstance();
  $view = $layout-&gt;getView();////
  $view-&gt;navigation( $this-&gt;getMenu() );             // load the menu container
  $view-&gt;navigation()-&gt;menu()-&gt;setUlClass('nav');    // set UL class
  </code></pre>
  
  <p>my code for the navigation container is:</p>
  
  <pre><code>private function getMenu()
  {
      return new Zend_Navigation(array(
          array(
              'label' =&gt; 'DASHBOARD',
              'id' =&gt; 'dashboard',
              'route' =&gt; 'default_index_index',
              'class' =&gt; 'nav',
              'ulClass' =&gt; 'nav'
          ),
          array(
              'label' =&gt; 'POLICIES',
              'id' =&gt; 'policies',
              'route' =&gt; 'policies_policies_list',
              'class' =&gt; 'active nav',
              'ulClass' =&gt; 'nav',
              'pages' =&gt; array(
                  array(
                      'label' =&gt; 'LIST',
                      'id' =&gt; 'policiesList',
                      'route' =&gt; 'policies_policies_add',
                      'class' =&gt; 'nav',
                      'ulClass' =&gt; 'nav'
                  )
              )
          )
      ));
  }       
  </code></pre>
  
  <p>The result code HTML is bellow:</p>
  
  <pre><code>&lt;ul class="nav"&gt;
      &lt;li class="active"&gt;
          &lt;a id="menu-dashboard" class="nav" href="/"&gt;Dashboard&lt;/a&gt;
      &lt;/li&gt;
      &lt;li&gt;
          &lt;a id="menu-policies" class="active nav" href="/policies/list"&gt;Apólices&lt;/a&gt;
          &lt;ul&gt;  &lt;!-- we should have a class nav here too --&gt;
              &lt;li&gt;
                  &lt;a id="menu-policiesList" class="nav" href="/policies/add"&gt;Listar&lt;/a&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
      &lt;/li&gt;
  &lt;/ul&gt;   
  </code></pre>
  
  <p>I know that some duplicated class stuff in the array, but I tried everything, the
  result is that only the FIRST UL has a class, the submenus UL's haven't. Anyone knows
  how I can make Zend Navigation to set the class for UL on the submenus?</p>
  
  <p>Cheers</p>
  
  <p>Hugo</p>