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]