Skip to content

Commit

Permalink
改进指定文件渲染
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Jan 9, 2025
1 parent 6a46068 commit 83f108a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/think/view/driver/Php.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected function getTemplateFile(string $template): string
if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
// 获取模板文件名
$template = $this->parseTemplate($template);
} else {
} elseif (!is_file($template)) {
$path = $this->config['view_path'] ?: $this->getViewPath($this->app->http->getName());
$template = $path . $template;
}
Expand Down

0 comments on commit 83f108a

Please sign in to comment.