Hi, I have a navigation which detects active pages successfully. But when I applied it with a router, active pages can not be detected which highlight the active page's tab ???
in Bootstrap <http://forums.zend.com/viewtopic.php?f=69&t=6938#>protected function _initRoutes(){ Zend_Controller_Front::getInstance()->getRouter()->addRoute( 'project_view', // route name new Zend_Controller_Router_Route( 'project/:id/:action', array( 'module' => 'application', 'controller' => 'project', 'action' => 'index' , 'id' => null ), array('id' => '\d+') ) ); } protected function _initNavigation(){ $view = $this->getResource ( 'view' ); //require $pages $pages=array(); require_once APPLICATION_PATH . '/configs/navigation.php'; $navigation = new Zend_Navigation($pages); $view->navigation($navigation); } in navigation array <http://forums.zend.com/viewtopic.php?f=69&t=6938#><?php $pages = array( array( 'label' => 'home', 'controller' => 'index', 'action' => 'index' ), array( 'label' => 'All Projects', 'controller' => 'project', 'action' => 'index', 'route' => 'project_view', 'params' => array('id'=>null) 'pages' => array( array( 'label' => 'Project Details', 'controller' => 'project', 'action' => 'details', 'route' => 'project_view', 'params' => array('id'=>null) ), array( 'label' => 'Project Partners', 'controller' => 'project', 'action' => 'partners', 'route' => 'project_view', 'params' => array('id'=>null) ) ) ), array( 'label' => 'Help', 'controller' => 'index', 'action' => 'help', ) ); These URLs cannot detect active pages (in menu) http://localhost/project/ (lists all projects) http://localhost/project/999/partners (lists partners of project_id:999) http://localhost/project/999/details (print details of project_id:999) !! BUT !! With out using a router these URLs can detect active pages http://localhost/project/ http://localhost/project/partner/id/999 http://localhost/project/details/id/999 Any solutions ?
