View类的fetch方法 在关闭response自动输出的情况下 直接输出 controller类增加display方法作为fetch的别名方法

This commit is contained in:
thinkphp
2016-03-05 11:50:20 +08:00
parent 3bb03dfee3
commit 168616bab8
2 changed files with 17 additions and 0 deletions

View File

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