did i do something wrong? anyone?
iceangel89 wrote: > > i am using Zend_Navigate like > > http://code.google.com/p/anderson-sec-ims/source/browse/trunk/application/configs/navigation.php > > ... > $categories = new Zend_Navigation_Page_Mvc(array( > 'label' => 'Categories', > 'module' => 'lab', > 'controller' => 'categories', > 'action' => 'index', > 'pages' => array($catAdd, $catEdit, $catDelete, $items) > )); > $deptAdd = new Zend_Navigation_Page_Mvc(array( > 'label' => 'Add', > 'module' => 'lab', > 'controller' => 'departments', > 'action' => 'add' > )); > > $deptEdit = new Zend_Navigation_Page_Mvc(array( > 'label' => 'Edit', > 'module' => 'lab', > 'controller' => 'departments', > 'action' => 'edit', > 'params' => array('id' => null) > )); > $deptDelete = new Zend_Navigation_Page_Mvc(array( > 'label' => 'Delete', > 'module' => 'lab', > 'controller' => 'departments', > 'action' => 'delete', > 'params' => array('id' => null) > )); > $departments = new Zend_Navigation_Page_Mvc(array( > 'label' => 'Departments', > 'module' => 'lab', > 'controller' => 'departments', > 'pages' => array($deptAdd, $deptEdit, $deptDelete, $categories) > )); > $lab = new Zend_Navigation_Page_Mvc(array( > 'label' => 'Lab', > 'module' => 'lab', > 'pages' => array($departments), > 'id' => 'lab' > )); > $home = new Zend_Navigation_Page_Mvc(array( > 'label' => 'Home', > 'module' => 'default', > 'id' => 'home' > )); > > $nav = new Zend_Navigation(array( > array( > 'label' => 'IMS', > 'controller' => 'index', > 'action' => 'index', > 'pages' => array( > $home, $lab, $library, $media, $misc, $reports > ) > ) > )); > > i cannot go to pages with params like edit and delete > (http://zf-ims/lab/departments/edit/1) but i can go to pages with params > like categories. but i can to http://zf-ims/lab/departments/edit/id/1 > > i got > > Fatal error: Uncaught exception 'Zend_Controller_Router_Exception' with > message 'controller is not specified' in > D:\Frameworks\ZendFramework180\library\Zend\Controller\Router\Route.php:341 > Stack trace: #0 > D:\Frameworks\ZendFramework180\library\Zend\Controller\Router\Rewrite.php(433): > Zend_Controller_Router_Route->assemble(Array, true, true) #1 > D:\Frameworks\ZendFramework180\l... > > my routes in application.ini > > resources.router.routes.lab.route = "/:module/:controller/:action/:id" > resources.router.routes.paging.route = > "/:module/:controller/:action/id/:id/page/:page" > > please someone help! > -- View this message in context: http://www.nabble.com/Zend_Navigation---Request-Parameters-tp23461294p23469579.html Sent from the Zend Framework mailing list archive at Nabble.com.
