mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 16:12:49 +08:00
统一方法名
This commit is contained in:
@@ -161,7 +161,7 @@ class Template
|
|||||||
* @param array $config 模板参数
|
* @param array $config 模板参数
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function display($template, $vars = [], $config = [])
|
public function fetch($template, $vars = [], $config = [])
|
||||||
{
|
{
|
||||||
if ($vars) {
|
if ($vars) {
|
||||||
$this->data = $vars;
|
$this->data = $vars;
|
||||||
@@ -208,7 +208,7 @@ class Template
|
|||||||
* @param array $config 模板参数
|
* @param array $config 模板参数
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function fetch($content, $vars = [], $config = [])
|
public function display($content, $vars = [], $config = [])
|
||||||
{
|
{
|
||||||
if ($vars) {
|
if ($vars) {
|
||||||
$this->data = $vars;
|
$this->data = $vars;
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ class Think
|
|||||||
}
|
}
|
||||||
// 记录视图信息
|
// 记录视图信息
|
||||||
APP_DEBUG && Log::record('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]', 'info');
|
APP_DEBUG && Log::record('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]', 'info');
|
||||||
$this->template->display($template, $data, $config);
|
$this->template->fetch($template, $data, $config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -70,7 +70,7 @@ class Think
|
|||||||
*/
|
*/
|
||||||
public function display($template, $data = [], $config = [])
|
public function display($template, $data = [], $config = [])
|
||||||
{
|
{
|
||||||
$this->template->fetch($template, $data, $config);
|
$this->template->display($template, $data, $config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user