title: zend_navigation and modules
body: <p>I am developing an application at the moment with zend and I have seperated the app into modules.  </p>
  
  <p>The default module is the main site where unlogged in users access and have free reign to look around.  When you log in, depending on the user type you either go to module A or module B, which is controlled by simple ACLs.  If you have access to Module A you can not access Module B and visa versa. Both user types can see the default module.</p>
  
  <p>Now I want to use Zend_Navigation to manage the entire applications navigation in all modules. I am not sure how to go about this, as all the examples that I have seen work within a module or very simple application.</p>
  
  <p>I've tried to have my navigation.xml file look like this:</p>
  
  <pre><code>&lt;configdata&gt;
  &lt;navigation&gt;
  
          &lt;label&gt;Home&lt;/label&gt;
          &lt;controller&gt;index&lt;/controller&gt;
          &lt;action&gt;index&lt;/action&gt;
          &lt;module&gt;default&lt;/module&gt;
  
          &lt;pages&gt;
              &lt;tour&gt;
                  &lt;label&gt;tour&lt;/label&gt;
                  &lt;controller&gt;tour&lt;/controller&gt;
                  &lt;action&gt;index&lt;/action&gt;
                  &lt;module&gt;default&lt;/module&gt;
              &lt;/tour&gt;
  
              &lt;blog&gt;
                  &lt;label&gt;blog&lt;/label&gt;
                  &lt;url&gt;http://blog.mysite.com&lt;/url&gt;                   
              &lt;/blog&gt;
  
              &lt;support&gt;
                  &lt;label&gt;Support&lt;/label&gt;
                  &lt;controller&gt;support&lt;/controller&gt;
                  &lt;action&gt;index&lt;/action&gt;
                  &lt;module&gt;default&lt;/module&gt;
              &lt;/support&gt;
  
          &lt;/pages&gt;
  
  &lt;/navigation&gt;
  &lt;/configdata&gt;
  </code></pre>
  
  <p>This if fine for the default module, but how would I go about the other modules to this navigation page?  Each module has it's own home page, and others etc.</p>
  
  <p>Would I be better off adding a unique navigation.xml file for each module that is loaded in the preDispatch plugin that I have written to handle my ACLs?? Or keep them in one massive navigation file?</p>
  
  <p>Any tips would be fantastic.</p>
  
  <p>Thanks,</p>
  
  <p>Grant</p>