MY_EXECPTION different in development and poduction |
Hi every body. I would like to have 2 different versions of MY_Exceptions.php :
In development mode : Code: class MY_Exceptions extends CI_Exceptions { In production mode : Code: class MY_Exceptions extends CI_Exceptions { Any idea or help on how I could do this?
Check the ENVIRONMENT constant and call the parent method or do your custom action:
PHP Code: if (ENVIRONMENT == ‘production’) {
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/ |
Welcome Guest, Not a member yet? Register Sign In |