mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
模板渲染支持直接渲染根路径下面的模板 例如 $this->fetch('/name');
This commit is contained in:
@@ -1067,6 +1067,8 @@ class Template
|
||||
}
|
||||
if (0 !== strpos($template, '/')) {
|
||||
$template = str_replace(['/', ':'], $this->config['view_depr'], $template);
|
||||
} else {
|
||||
$template = str_replace(['/', ':'], $this->config['view_depr'], substr($template, 1));
|
||||
}
|
||||
if ($this->config['view_base']) {
|
||||
$module = isset($module) ? $module : Request::instance()->module();
|
||||
|
||||
Reference in New Issue
Block a user