Custom 404 and 405 error pages

This commit is contained in:
Pierre Rudloff 2020-07-15 23:17:23 +02:00
parent 280618bb6b
commit b6b4dad2ec
3 changed files with 24 additions and 1 deletions

View file

@ -46,6 +46,8 @@ try {
// Error handling.
$container['errorHandler'] = [$frontController, 'error'];
$container['phpErrorHandler'] = [$frontController, 'error'];
$container['notFoundHandler'] = [$frontController, 'notFound'];
$container['notAllowedHandler'] = [$frontController, 'notAllowed'];
// Routes.
$app->get(