Skip to content

Commit

Permalink
use error view as default view instead of 404
Browse files Browse the repository at this point in the history
  • Loading branch information
creme332 committed May 8, 2024
1 parent 147b341 commit b3341ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function view(
if (file_exists($view_file_path)) {
include $view_file_path;
} else {
include __DIR__ . '/../views/404.php';
include __DIR__ . '/../views/Error.php';
}
$template_content = ob_get_contents();
ob_end_clean();
Expand Down

0 comments on commit b3341ff

Please sign in to comment.