改进Template类parseTemplateFile方法

This commit is contained in:
thinkphp
2016-12-06 07:50:08 +08:00
parent 32c2f5799b
commit 47ad3507d5

View File

@@ -1072,7 +1072,7 @@ class Template
$module = isset($module) ? $module : Request::instance()->module();
$path = $this->config['view_base'] . ($module ? $module . DS : '');
} else {
$path = $this->config['view_path'];
$path = isset($module) ? APP_PATH . $module . 'view' . DS : $this->config['view_path'];
}
$template = $path . $template . '.' . ltrim($this->config['view_suffix'], '.');
}