Unfortunately no. You have to define all the routes in your application ini. The drawback is it's a lot of work and makes coding slightly more unmanageable. The benefit is if a route is not strictly defined the behavior I noticed is your forwarded back to the home page. For security reasons it's a good thing because you define exactly what's accessible and how that resource is accessed else the url won't work.
Tom -----Original Message----- From: [email protected] [mailto:[email protected]] Sent: Tuesday, August 04, 2009 2:15 PM To: [email protected] Subject: Zend Application/Router/Navigation/Issues Hi, have you found any solution to the problem that Zend_Navigate breaks when using Routes at the same time? Tom Shaw-4 wrote: > > I'm using the array config Zend Application setup. My array router > resource > setup is below. Here are the problems the first route "entry" is a > correctly > designed route. But when I try to access it Zend Controller Router > Exception > throws an exception that the title is not defined. This is a simple route > that should not require any extra parameters. Second If I add a single > static route as in the default-flash route. Zend Navigation completely > breaks and none of the links work. There's obviously serious issues > concerning how Zend Navigation/Router/Application are working together > here. > *Note* I have gotten this to work and that is by defining every single > route > the system has + defining in Zend Navigation a route for every single page > link has which becomes utterly redundant and un manageable. > > > > <?php > > return array( > > 'entry' => array( > > 'type' => 'Zend_Controller_Router_Route', > > 'route' => 'entry/:title', > > 'defaults' => array( > > 'module' => 'default', > > 'controller' => 'index', > > 'action' => 'index' > > ) > > ), > > 'tags' => array( > > 'type' => 'Zend_Controller_Router_Route', > > 'route' => 'tag/:tag', > > 'defaults' => array( > > 'module' => 'default', > > 'controller' => 'index', > > 'action' => 'tag', > > 'tag' => '\d+' > > ) > > ), > > 'admin-users-edit' => array( > > 'type' => 'Zend_Controller_Router_Route', > > 'route' => 'admin/users/edit/:id', > > 'defaults' => array( > > 'module' => 'admin', > > 'controller' => 'users', > > 'action' => 'edit', > > 'id' => '\d+' > > ) > > ), > > 'default-flash' => array( > > 'type' => 'Zend_Controller_Router_Route_Static', > > 'route' => 'flash', > > 'defaults' => array( > > 'module' => 'default', > > 'controller' => 'flash', > > 'action' => 'index' > > ) > > ), > > ); > > > > Tom Shaw > > [email protected] > > > > > > > Quoted from: http://www.nabble.com/Zend-Application-Router-Navigation-Issues-tp23623420p2 3623420.html
