mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
支持 控制器分层的视图目录对应 如果需要区分可以手动传入
This commit is contained in:
@@ -228,9 +228,9 @@ class View
|
||||
if (defined('CONTROLLER_NAME')) {
|
||||
if ('' == $template) {
|
||||
// 如果模板文件名为空 按照默认规则定位
|
||||
$template = CONTROLLER_NAME . $depr . ACTION_NAME;
|
||||
$template = str_replace('.', DS, CONTROLLER_NAME) . $depr . ACTION_NAME;
|
||||
} elseif (false === strpos($template, $depr)) {
|
||||
$template = CONTROLLER_NAME . $depr . $template;
|
||||
$template = str_replace('.', DS, CONTROLLER_NAME) . $depr . $template;
|
||||
}
|
||||
}
|
||||
return THEME_PATH . $template . $this->config['view_suffix'];
|
||||
|
||||
Reference in New Issue
Block a user