mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
改进Url生成类
This commit is contained in:
@@ -75,7 +75,7 @@ class Url
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($anchor)) {
|
||||
if (!empty($anchor)) {
|
||||
$url .= '#' . $anchor;
|
||||
}
|
||||
if ($domain) {
|
||||
|
||||
@@ -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