Hi Pete,

I actually did a start for a dynamic navigation. I never really finished
(and believe me, it's been a while) because I didn't really need it anymore
. But may be it gives you a hint.

Well, the navigation has to be on every page, why not use a plugin for
handeling?!?

class Navigation extends Zend_Controller_Plugin_Abstract
{
    public function postDispatch (Zend_Controller_Request_Abstract $request)
    {
         $this->view = Zend_Registry::get('Zend_View');

         $menuArray= $this->getAnArrayOfLinks();
         $this->getResponse()->insert('top_navigation',
$this->view->htmlList($menuArray));  

   }

   public function getAnArrayOfLink()
   {
          // Use database or whatever you like
   }
}


And in the view script just use <?= $this->layout()->navigation; ?>

Just try your luck, don't know whether it really works that way. It's been
too long ;-)

Greetings,
Tobias
-- 
View this message in context: 
http://www.nabble.com/Zend-Layout-and-_forward-tp19178382p19209753.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to