diff --git a/lib/View.php b/lib/View.php index dd15e321..65830323 100644 --- a/lib/View.php +++ b/lib/View.php @@ -66,7 +66,7 @@ class View */ public static function getTemplateFilePath(string $template): string { - $file = self::isBootstrapTemplate($template) ? 'bootstrap' : $template; + $file = self::isBootstrapTemplate($template) ? 'bootstrap' : basename($template); return PATH . 'tpl' . DIRECTORY_SEPARATOR . $file . '.php'; }