Add 404 page

This commit is contained in:
osaajani 2020-02-20 03:53:15 +01:00
parent 4548c360f0
commit e7beafaa8b
6 changed files with 60 additions and 2 deletions

View file

@ -14,4 +14,12 @@
}
//Routing current query
descartes\Router::route(ROUTES, $_SERVER['REQUEST_URI']);
try
{
descartes\Router::route(ROUTES, $_SERVER['REQUEST_URI']);
}
catch (\descartes\exceptions\DescartesException404 $e)
{
$controller = new \controllers\internals\HttpError();
$controller->_404();
}