mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 07:02:47 +08:00
View类的fetch方法 在关闭response自动输出的情况下 直接输出 controller类增加display方法作为fetch的别名方法
This commit is contained in:
@@ -186,6 +186,10 @@ class View
|
||||
$replace = $this->config['parse_str'];
|
||||
$content = str_replace(array_keys($replace), array_values($replace), $content);
|
||||
}
|
||||
if (!Config::get('response_auto_output')) {
|
||||
// 自动响应输出
|
||||
return Response::send($content, Response::type());
|
||||
}
|
||||
return $content;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user