Welcome Guest, Not a member yet? Register   Sign In
Error DB handling
#1

just request: maybe codeigniter-4 have to make an error handling for error 403 like "$route['404_override']" to "$route['403_override']"
Reply
#2

It depends.

403 can happen on webserver side, in which case request won't even make it to PHP / CodeIgniter.

If you want to use 403 resource yourself in your application, because CodeIgniter doesn't handle your app authentication, it wouldn't know if something is restricted or not, developer would need to build that in.

However, I assume you mean php/general config errors?

Here's a little explanation how to handle custom error exceptions, https://bcit-ci.github.io/CodeIgniter4/g...exceptions
Reply




Theme © iAndrew 2016 - Forum software by © MyBB