mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
改进Url生成类
This commit is contained in:
@@ -21,10 +21,10 @@ class Think
|
||||
$this->template = new Template($config);
|
||||
}
|
||||
|
||||
public function fetch($template, $data = [], $cacheId = '')
|
||||
public function fetch($template, $data = [], $cache = [])
|
||||
{
|
||||
if (is_file($template)) {
|
||||
$this->template->display($template, $data, $cacheId);
|
||||
$this->template->display($template, $data, $cache);
|
||||
} else {
|
||||
$this->template->fetch($template, $data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user