title: Getting Zend_Navigation menu to work with jQuery's Fisheye
body: <p>I'm using Zend_Navigation (sweet addition to the framework, btw) to build my menu, after which it should be rendered in the page (self-evidently). I first set the container somewhere in the controller:</p>
  
  <pre><code>// $pages is the array containing all page information
  $nav = new Zend_Navigation($pages);
  $this-&gt;view-&gt;navigation($nav);
  </code></pre>
  
  <p>Then, in the layout, it is rendered like this:</p>
  
  <pre><code>echo $this-&gt;navigation()-&gt;menu();
  </code></pre>
  
  <p>which works perfectly. Now: I want the menu to be rendered a little differently. The page I'm building uses the jQuery <a href="http://blog.jquery.com/2007/05/09/fisheye-dock-menu/" rel="noreferrer">Fisheye-plugin</a> to build a Mac-like Dock-menu. However, this plugin needs a specific markup...</p>
  
  <p>Actually, it takes a list of <code>&lt;a&gt;</code> elements containing both an <code>&lt;img&gt;</code> (for the icon) and a <code>&lt;span&gt;</code> (for the tooltip). The standard Menu view helper renders everything inside an unordered list (logically), with the <code>'label'</code> parameter as the link text.</p>
  
  <p>It seems that content passed to the <code>'label'</code> parameter is escaped before rendering, so inserting the html there won't do me any good. Additionally, the Fisheye usually doesn't seem to take its items contained in a <code>&lt;li&gt;</code> tag, with the entire thing wrapped in <code>&lt;ul&gt;&lt;/ul&gt;</code>, but just a one-level list of <code>&lt;a&gt;</code> elements.</p>
  
  <p>I was thinking about writing a custom view helper for the dock, which would be able to take care of inserting the <code>&lt;img&gt;</code> and the <code>&lt;span&gt;</code>, but I'm having a very hard time getting a custom view helper attached to the Navigation class. I just can't figure out where to place it and in what way, even though all my other custom classes (models and such) are sweetly taken care of by the autoloader. Any ideas on this?</p>
  
  <p>Then again, even if I can get this view helper to work, I'm still left with the HTML unordered list - I know I can lose that one too using the custom view helper, but I've always been a fan of containing main navigation menus inside a list, for the sake of semantics.</p>
  
  <p>If anyone can help me out a little, I'd greatly appreciate it. If the Fisheye just isn't meant to work with <code>&lt;ul&gt;</code>'s, that'd be too bad... would there be a good reason for losing Zend_Navigation altogether in this case?</p>