How to create custom Error 404 page |
Hello Falko !
You can set a custom 404 page in the "app/Config/Routes.php" file: https://codeigniter4.github.io/userguide...l#override The part that will interest you is: PHP Code: // Would execute the show404 method of the App\Errors class So you just have to redirect to a Class::method of your choice, that will return the json response you are looking for :-) > Maybe the RESTful madman will have something to add ? :-D |
Messages In This Thread |
How to create custom Error 404 page - by falko - 02-02-2020, 04:16 PM
RE: How to create custom Error 404 page - by littlej - 02-02-2020, 05:24 PM
RE: How to create custom Error 404 page - by falko - 02-19-2020, 01:25 PM
RE: How to create custom Error 404 page - by littlej - 02-19-2020, 01:27 PM
RE: How to create custom Error 404 page - by falko - 02-19-2020, 01:36 PM
RE: How to create custom Error 404 page - by littlej - 02-19-2020, 11:02 PM
|