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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user