增加url_param_type配置参数 用于配置操作方法的参数绑定方式

This commit is contained in:
thinkphp
2016-06-01 14:13:21 +08:00
parent 3420eb5f60
commit dfa5143dad
4 changed files with 17 additions and 11 deletions

View File

@@ -389,7 +389,7 @@ class App
}
if (false === $result) {
// 路由无效 解析模块/控制器/操作/参数... 支持控制器自动搜索
$result = Route::parseUrl($path, $depr, $config['controller_auto_search']);
$result = Route::parseUrl($path, $depr, $config['controller_auto_search'], $config['url_param_type']);
}
//保证$_REQUEST正常取值
$_REQUEST = array_merge($_POST, $_GET, $_COOKIE);