mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
改进Response类 增加think\response\View类 用于渲染模板响应输出
This commit is contained in:
@@ -151,7 +151,7 @@ class Handle
|
||||
// 获取并清空缓存
|
||||
$content = ob_get_clean();
|
||||
|
||||
$response = Response::create('html')->data($content);
|
||||
$response = new Response($content, 'html');
|
||||
|
||||
if ($exception instanceof HttpException) {
|
||||
$statusCode = $exception->getStatusCode();
|
||||
|
||||
Reference in New Issue
Block a user