mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 15:42:48 +08:00
修正Template类
This commit is contained in:
@@ -1072,7 +1072,7 @@ class Template
|
|||||||
$module = isset($module) ? $module : Request::instance()->module();
|
$module = isset($module) ? $module : Request::instance()->module();
|
||||||
$path = $this->config['view_base'] . ($module ? $module . DS : '');
|
$path = $this->config['view_base'] . ($module ? $module . DS : '');
|
||||||
} else {
|
} else {
|
||||||
$path = isset($module) ? APP_PATH . $module . 'view' . DS : $this->config['view_path'];
|
$path = isset($module) ? APP_PATH . $module . DS . basename($this->config['view_path']) . DS : $this->config['view_path'];
|
||||||
}
|
}
|
||||||
$template = $path . $template . '.' . ltrim($this->config['view_suffix'], '.');
|
$template = $path . $template . '.' . ltrim($this->config['view_suffix'], '.');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user