From 3fbb9bc3c85589362a43fe9ac11afef340b2bdd3 Mon Sep 17 00:00:00 2001 From: Robert Date: Sat, 20 Jun 2026 13:11:32 -0400 Subject: [PATCH] Require View at end of view files...! --- src/Framework/View.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Framework/View.php b/src/Framework/View.php index bbedcdb..d8149e0 100644 --- a/src/Framework/View.php +++ b/src/Framework/View.php @@ -104,7 +104,7 @@ final class View } $fileExt = ViewType::getFileExtensionFor($type); - $file = $this->findViewPath($viewFile . $fileExt); + $file = $this->findViewPath($viewFile . "View" . $fileExt); if ($type == ViewType::TWIG) { $this->useTemplateEngineTwig = true; $this->templateType = str_replace('.', '', $fileExt); @@ -122,8 +122,8 @@ final class View } if ($file === false) { - echo "No view file exists for: {$viewFile}!"; - throw new \Exception("View File does not exist: " . $viewFile); + echo "No view file exists for: {$viewFile}View!"; + throw new \Exception("View File does not exist: " . $viewFile. "View"); } else { $this->files[] = array('file' => $file, 'path' => UseDir::PROJECT, 'fileType' => $fileExt); }