Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (defined('ENVIRONMENT'))
- {
- switch (ENVIRONMENT)
- {
- case 'development':
- ini_set('display_errors', 1);
- error_reporting(E_ALL);
- break;
- case 'testing':
- case 'production':
- error_reporting(0);
- break;
- default:
- exit('The application environment is not set correctly.');
- }
- }
Add Comment
Please, Sign In to add comment