改进response类

This commit is contained in:
thinkphp
2016-05-11 14:04:56 +08:00
parent fce80eb623
commit 7f385217b9
7 changed files with 94 additions and 119 deletions

View File

@@ -371,12 +371,10 @@ function request()
}
/**
* 设置Response输出
* @param string $name 方法
* @param mixed $param 参数
* @return mixed
* 获取当前的Response对象实例
* @return \think\Response
*/
function response($name, $param = '')
function response()
{
return Response::$name($param);
return Response::instance();
}