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