【发布时间】:2011-01-17 11:40:45
【问题描述】:
如何创建路由来接受所有对不存在的控制器的请求,但保留对现有控制器的请求。
此代码捕获所有路线
$route = new Zend_Controller_Router_Route_Regex('(\w+)', array('controller' => 'index', 'action' => 'index')); $router->addRoute('index', $route);
我应该如何将 /admin/* 或 /feedback/* 之类的路由请求指定给现有的 adminController 或 feedbackController?
【问题讨论】:
-
你可能想看看这篇我问过类似问题的帖子stackoverflow.com/questions/2520058/…