heres my setup:
http://www.example.com/<module>/<controller>/<action>
I defined this route:
$router->addRoute(
'editUser', new Zend_Controller_Router_Route('admin/users/edit/:id',
array(
'module' => 'admin',
'controller' => 'users',
'action' => 'edit',
'route' => 'default',
'id' => 0,
),
array('id' => '\d+')
)
);
Thus, the navigation menu of my sites works fine until I go to the page:
http:
It displays the page without problems, but now every link in the navigation menu points to http://www.example.com/admin/users/edit
Not sure why this is happening, and would like it to be fixed while maintaining router usage.
Thanks in advance for any pointers!
source
share