调整CodeIgniter错误报告级别
修改位置:CI根目录 index.php
为开发环境与生产环境定义错误报告级别
1 if (defined('ENVIRONMENT')) 2 { 3 switch (ENVIRONMENT) 4 { 5 case 'development': 6 error_reporting(E_ALL); 7 break; 8 9 case 'testing': 10 case 'production': 11 error_reporting(E_ERROR); 12 break; 13 14 default: 15 exit('The application environment is not set correctly.'); 16 } 17 }
参考:http://codeigniter.org.cn/user_guide/general/errors.html