When I added this route
$classes_router = new Zend_Controller_Router_Route(
'/:filter1/:filter2/*',
array(
'module' => 'course',
'controller' => $filter_controller,
'action' => 'index',
'filter1' => '',
'filter2' => ''
)
);
Te default route :module/:controller/:action doesn’t work anymore. Please tell me what is the problem?
The problem is that a request to
somemodule/somecontroller/someactionwill be matched by the route you’ve added (which will be checked before the default one). You need to provide some restriction in the route to determine what it matches, perhaps by limiting the possible matches for the:filter1variable:or adding a static prefix: