diff --git a/models/Dispatcher.php b/models/Dispatcher.php index 136b039..cf27f4e 100644 --- a/models/Dispatcher.php +++ b/models/Dispatcher.php @@ -90,7 +90,7 @@ class Dispatcher private static function trigger404() { http_response_code(404); - $page = new ViewErrorPage('Page not found!'); - $page->showContent(); + self::errorPage('Page not found!', 'The page you requested could not be found.'); + exit; } }