mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进Response类 改进traits\controller\Jump 添加response助手函数
This commit is contained in:
12
helper.php
12
helper.php
@@ -23,6 +23,7 @@ use think\Lang;
|
||||
use think\Loader;
|
||||
use think\Log;
|
||||
use think\Request;
|
||||
use think\Response;
|
||||
use think\Route;
|
||||
use think\Session;
|
||||
use think\Url;
|
||||
@@ -370,3 +371,14 @@ function request($name, $param = '')
|
||||
{
|
||||
return Request::instance()->$name($param);
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置Response输出
|
||||
* @param string $name 方法
|
||||
* @param mixed $param 参数
|
||||
* @return mixed
|
||||
*/
|
||||
function response($name, $param = '')
|
||||
{
|
||||
return Response::$name($param);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user