修正Hook类 改进Template对于布局的处理

This commit is contained in:
thinkphp
2016-05-20 16:59:26 +08:00
parent d9416c7e2d
commit a24a2155eb
3 changed files with 5 additions and 3 deletions

View File

@@ -329,6 +329,8 @@ class Template
$content = str_replace($this->config['layout_item'], $content, file_get_contents($layoutFile));
}
}
} else {
$content = str_replace('{__NOLAYOUT__}', '', $content);
}
// 模板解析