mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进模板变量赋值
This commit is contained in:
@@ -169,7 +169,7 @@ class View
|
||||
public function fetch($template = '', $vars = [], $config = [], $renderContent = false)
|
||||
{
|
||||
// 模板变量
|
||||
$vars = $vars ? $vars : $this->data;
|
||||
$vars = array_merge($this->data, $vars);
|
||||
if (!$renderContent) {
|
||||
// 获取模板文件名
|
||||
$template = $this->parseTemplate($template);
|
||||
|
||||
Reference in New Issue
Block a user