改进View类engine方法 如果传入字符串 则表示模板引擎名称 模板引擎参数取默认值 增加 view_replace_str 配置参数 用于设置全局 视图输出内容替换

This commit is contained in:
thinkphp
2016-04-26 17:39:20 +08:00
parent 29d3d9e503
commit 4b1e88d0cb
3 changed files with 14 additions and 4 deletions

View File

@@ -117,6 +117,8 @@ return [
'taglib_end' => '}',
],
// 视图输出字符串内容替换
'view_replace_str' => [],
// 默认跳转页面对应的模板文件
'dispatch_success_tmpl' => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',
'dispatch_error_tmpl' => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',