距开课0天0时0分-9988790秒
青萍微澜2019-12-30 18:33:58 0 0 452
[PHP讨论组]源自课程章节:TP5路由规则中变量规则的设置技巧:全局/局部/正则验证举报回复话题 ↕
return [ // 是否开启路由 'url_route_on'=> true, // 是否强制使用路由 'url_route_must'=> false, // URL参数方式 0 按名称成对解析 1 按顺序解析 'url_param_type'=> 1,];
think\Route::get('test/:name/:age','index/index/test',[],[ 'name'=>'[a-zA-Z]+', 'age'=>'\d{2}']);
0
分享