改进Appe类 Request和Route类

This commit is contained in:
thinkphp
2016-05-24 16:35:57 +08:00
parent 6e11fbc025
commit a3fae7c6dc
6 changed files with 103 additions and 47 deletions

View File

@@ -99,6 +99,10 @@ class Response
// 处理输出数据
$data = $this->output($data);
// 监听response_data
APP_HOOK && Hook::listen('response_data', $data);
// 发送头部信息
if (!headers_sent() && !empty($this->header)) {
// 发送状态码