您的位置:首页 > 其它

调整CodeIgniter错误报告级别

2015-03-18 13:14 162 查看
修改位置:CI根目录 index.php

为开发环境与生产环境定义错误报告级别

if (defined('ENVIRONMENT'))
{
switch (ENVIRONMENT)
{
case 'development':
error_reporting(E_ALL);
break;

case 'testing':
case 'production':
error_reporting(E_ERROR);
break;

default:
exit('The application environment is not set correctly.');
}
}


参考:http://codeigniter.org.cn/user_guide/general/errors.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: