草庐IT

TagsController

全部标签

php - Zend Regex > 路由模块问题

我正在使用zend框架构建REST网络服务,我正在使用模块来分隔我的api版本,正如我提到的here例如:“applications/modules/v1/controllers”、“applications/modules/v2/controllers”具有不同的操作和功能集。我在我的application.ini中提到我的默认模块为“v1”正如我提到的那样,我正在使用上下文切换和正则表达式路由here在我接受的解决方案中:$router->addRoute('route1',newZend_Controller_Router_Route_Regex('api/([^-]*)/([^