mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Add 404 page
This commit is contained in:
parent
4548c360f0
commit
e7beafaa8b
6 changed files with 60 additions and 2 deletions
10
index.php
10
index.php
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue