改进Response类 改进traits\controller\Jump 添加response助手函数

This commit is contained in:
thinkphp
2016-05-11 07:51:41 +08:00
parent 70f184556d
commit 8e1cd9c51f
5 changed files with 166 additions and 289 deletions

View File

@@ -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);
}