Customize 404 error page but not only the view |
I'm trying to customize the 404 error page but the only way I've found is to edit the Routes.php file in the Config folder like so:
PHP Code: $routes->set404Override(function () { Is there a way to switch from the Controller and not directly from the view?
You can set a controller and method.
See https://codeigniter4.github.io/CodeIgnit...l#override
(07-21-2022, 01:07 AM)kenjis Wrote: You can set a controller and method. Perfect thanks |
Welcome Guest, Not a member yet? Register Sign In |