Zend Framework - routes - all requests to one controller except requests for existing controllers

Posted by se_pavel on Stack Overflow See other posts from Stack Overflow or by se_pavel
Published on 2010-02-16T16:39:07Z Indexed on 2010/03/28 10:33 UTC
Read the original article Hit count: 264

Filed under:
|

How to create route that accept all requests for unexsting controllers, but leave requests for existing.

This code catch all routes

$route = new Zend_Controller_Router_Route_Regex('(\w+)', array('controller' => 'index', 'action' => 'index')); $router->addRoute('index', $route);

how should I specify route requests like /admin/* or /feedback/* to existing adminController or feedbackController?

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about routing