From fb09cad6de6cd4bbca513458516d907af3e5af50 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 24 May 2016 22:09:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4route=E5=8A=A9=E6=89=8B?= =?UTF-8?q?=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helper.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/helper.php b/helper.php index 0a3206fd..0a458e5b 100644 --- a/helper.php +++ b/helper.php @@ -24,7 +24,6 @@ use think\Loader; use think\Log; use think\Request; use think\Response; -use think\Route; use think\Session; use think\Url; use think\View; @@ -336,20 +335,6 @@ function trace($log = '[think]', $level = 'log') } } -/** - * 路由注册 - * @param string $rule 路由规则 - * @param mixed $route 路由地址 - * @param sting $type 请求类型 - * @param array $option 路由参数 - * @param array $pattern 变量规则 - * @return void - */ -function route($rule = '', $route = [], $type = '*', $option = [], $pattern = []) -{ - Route::rule($rule, $route, $type, $option, $pattern); -} - /** * 获取当前Request对象实例 * @return \think\Request