mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
删除route助手函数
This commit is contained in:
15
helper.php
15
helper.php
@@ -24,7 +24,6 @@ use think\Loader;
|
|||||||
use think\Log;
|
use think\Log;
|
||||||
use think\Request;
|
use think\Request;
|
||||||
use think\Response;
|
use think\Response;
|
||||||
use think\Route;
|
|
||||||
use think\Session;
|
use think\Session;
|
||||||
use think\Url;
|
use think\Url;
|
||||||
use think\View;
|
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对象实例
|
* 获取当前Request对象实例
|
||||||
* @return \think\Request
|
* @return \think\Request
|
||||||
|
|||||||
Reference in New Issue
Block a user