mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
改进View类
This commit is contained in:
@@ -158,7 +158,7 @@ class View
|
|||||||
try {
|
try {
|
||||||
$method = $renderContent ? 'display' : 'fetch';
|
$method = $renderContent ? 'display' : 'fetch';
|
||||||
// 允许用户自定义模板的字符串替换
|
// 允许用户自定义模板的字符串替换
|
||||||
$replace = array_merge($this->replace, $replace, $this->engine->config('tpl_replace_string'));
|
$replace = array_merge($this->replace, $replace, (array) $this->engine->config('tpl_replace_string'));
|
||||||
$this->engine->config('tpl_replace_string', $replace);
|
$this->engine->config('tpl_replace_string', $replace);
|
||||||
$this->engine->$method($template, $vars, $config);
|
$this->engine->$method($template, $vars, $config);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user