mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 08:02:48 +08:00
改进view类的模板文件路径
This commit is contained in:
@@ -276,7 +276,7 @@ class View
|
|||||||
$tmplPath = $this->config['view_path']; // 模块设置独立的视图目录
|
$tmplPath = $this->config['view_path']; // 模块设置独立的视图目录
|
||||||
if (!$tmplPath) {
|
if (!$tmplPath) {
|
||||||
// 定义TMPL_PATH 则改变全局的视图目录到模块之外
|
// 定义TMPL_PATH 则改变全局的视图目录到模块之外
|
||||||
$tmplPath = defined('TMPL_PATH') ? TMPL_PATH . $module . '/' : APP_PATH . $module . '/' . $this->config['view_layer'] . '/';
|
$tmplPath = defined('TMPL_PATH') ? TMPL_PATH . $module . '/' : APP_PATH . ($module ? $module . '/' : '') . $this->config['view_layer'] . '/';
|
||||||
}
|
}
|
||||||
return $tmplPath . $theme;
|
return $tmplPath . $theme;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user