Yaf 路由问题

想增长Services层,没调试成功...调试

使用modules分组功能,访问老是出现5xx错误.路由

解决办法:在配置文件中增长io

;顺序很重要
routes.regex.type="regex"
routes.regex.match="#^/list/([^/]*)/([^/]*)#"
routes.regex.route.controller=Index
routes.regex.route.action=actio
routes.regex.map.1=name
routes.regex.map.2=value
;添加一个名为simple的路由协议
routes.simple.type="simple"
routes.simple.controller=c
routes.simple.module=m
routes.simple.action=a
;添加一个名为supervar的路由协议
routes.supervar.type="supervar"
routes.supervar.varname=r

暂时解决问题了,原理之后再说module

相关文章
相关标签/搜索