废除模块映射功能 改进route助手函数 Route类增加rule方法替代原register方法,原register方法更名为import方法用于导入路由配置

This commit is contained in:
thinkphp
2016-05-11 23:00:59 +08:00
parent ee837df7c9
commit a4fb28a310
4 changed files with 38 additions and 67 deletions

View File

@@ -358,7 +358,7 @@ function view($template = '', $vars = [])
*/
function route($rule = '', $route = [], $type = '*', $option = [], $pattern = [])
{
Route::register($rule, $route, $type, $option, $pattern);
Route::rule($rule, $route, $type, $option, $pattern);
}
/**