feat: view支持读取assign的数据

This commit is contained in:
augushong
2025-03-10 18:05:57 +08:00
parent 1160774f89
commit afd5f6b1dd

View File

@@ -65,6 +65,11 @@ class ViewBase extends ThinkView
}); });
} }
public function fetchData()
{
return $this->data;
}
/** /**
* 解析和获取模板内容 用于输出. * 解析和获取模板内容 用于输出.
* @param string $template 模板文件名或者内容 * @param string $template 模板文件名或者内容