改进视图驱动

This commit is contained in:
thinkphp
2018-03-30 09:40:16 +08:00
parent 507994ac85
commit c10d4a8931
2 changed files with 4 additions and 0 deletions

View File

@@ -29,6 +29,8 @@ class Php
'view_suffix' => 'php',
// 模板文件名分隔符
'view_depr' => DS,
// 默认模板渲染规则 1 解析为小写+下划线 2 全部转换小写
'auto_rule' => 1,
];
public function __construct($config = [])

View File

@@ -34,6 +34,8 @@ class Think
'view_depr' => DS,
// 是否开启模板编译缓存,设为false则每次都会重新编译
'tpl_cache' => true,
// 默认模板渲染规则 1 解析为小写+下划线 2 全部转换小写
'auto_rule' => 1,
];
public function __construct($config = [])