改进Php模板引擎驱动的模板定位规则

This commit is contained in:
thinkphp
2016-12-08 11:04:39 +08:00
parent 89239cceb4
commit 501cc85207
2 changed files with 17 additions and 7 deletions

View File

@@ -115,7 +115,9 @@ return [
'template' => [
// 模板引擎类型 支持 php think 支持扩展
'type' => 'Think',
// 模板路径
// 视图基础目录,配置目录为所有模块的视图起始目录
'view_base' => '',
// 当前模板的视图目录 留空为自动获取
'view_path' => '',
// 模板后缀
'view_suffix' => 'html',