We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a5a676 commit ada48feCopy full SHA for ada48fe
src/View/Engine/Simple.php
@@ -26,7 +26,7 @@ public function render($path, array $vars = null)
26
{
27
$template = $this->view->getViewsDir() . $path;
28
if (!is_file($template)) {
29
- throw new \Exception("Template file not found: $template.");
+ throw new \InvalidArgumentException("Template file not found: $template.");
30
}
31
32
// 设置视图变量
0 commit comments