mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
@@ -32,7 +32,6 @@ class Template
|
||||
'strip_space' => false, // 是否去除模板文件里面的html空格与换行
|
||||
'tpl_cache' => true, // 是否开启模板编译缓存,设为false则每次都会重新编译
|
||||
'compile_type' => 'file', // 模板编译类型
|
||||
'cache_path' => RUNTIME_PATH . 'template' . DS, // 模板缓存目录
|
||||
'cache_prefix' => '', // 模板缓存前缀标识,可以动态改变
|
||||
'cache_time' => 0, // 模板缓存有效期 0 为永久,(以数字为值,单位:秒)
|
||||
'layout_item' => '{__CONTENT__}', // 布局模板的内容替换标识
|
||||
@@ -56,6 +55,7 @@ class Template
|
||||
*/
|
||||
public function __construct(array $config = [])
|
||||
{
|
||||
$this->config['cache_path'] = RUNTIME_PATH . 'template' . DS;
|
||||
$this->config = array_merge($this->config, empty($config) ? (array) Config::get('template') : $config);
|
||||
$this->config['taglib_begin'] = $this->stripPreg($this->config['taglib_begin']);
|
||||
$this->config['taglib_end'] = $this->stripPreg($this->config['taglib_end']);
|
||||
|
||||
Reference in New Issue
Block a user