Add soft 404 error handling with errorController and template

Introduced `errorController` for handling unreachable pages with a soft 404 response. Added configurable error handling via `settings.development.ini` and implemented a new `error.tpl` template. Updated `dispatcher.php` to route non-existent pages to the error controller.
This commit is contained in:
stephan.kasdorf
2025-12-16 14:19:42 +01:00
parent e4462e9402
commit 6e19fb6228
4 changed files with 157 additions and 0 deletions

View File

@@ -4,6 +4,8 @@ templates = "/../../application/view/templates/"
templates_c = "/../../application/view/templates_c/"
config_dir = "/../../application/view/configs/"
debug_template = "/../../application/view/templates/shared/debug.tpl"
error_template = "/../../application/view/templates/shared/error.tpl"
error_controller = "error"
debugbar = true
caching = true