欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

PHP CI框架调试开启报错信息方法

程序员文章站 2022-04-08 19:09:26
方法如下三种: ......

方法如下三种:

1、php.ini 设置
display_errors = on
error_reporting = e_all | e_strict

2、ci index.php 设置
define(‘environment’, ‘development’);
error_reporting(e_all);

3、config/database.php中修改数据库设置:
$db['default']['db_debug'] = true;