Hello,

I got my route to work however If I add two routes to a controller only the last one added is evaluated. Is this the intended behavior?

Thanks
-Tom Printy


Tom Printy wrote:
Hello,

I am trying to get some routes to work and having some troubles


I have a couple routes defined like:


$router->addRoute(
        'index',
        new Zend_Controller_Router_Route(
'/:city/:state/:keyword/', array('controller' => 'index', 'action' => 'index'
                )
        )
);

//add the route
$controller = Zend_Controller_Front::getInstance();
$controller->setRouter($router);



However when I try the URL
http://example.com/elgin/il/garage/

I get the following dump
#0 library/Zend/Controller/Front.php(946):
Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
 Object(Zend_Controller_Response_Http))
#1 /library/Zend/Application/Bootstrap/Bootstrap.php(77): 
Zend_Controller_Front->dispatch()
#2 /library/Zend/Application.php(358): 
Zend_Application_Bootstrap_Bootstrap->run()
#3 /public/index.php(26): Zend_Application->run()
#4 {main} Request Parameters:
array (
  'controller' => 'elgin',
  'action' => 'il',
  'garage' => 'index',
  'module' => 'default',
)

Can anyone offer any suggestions?

Thanks
-Tom Printy


Reply via email to