Codeigniter enable error log display reporting


Codeigniter enable error log display reporting


You Can Enable Error Reporting in Codeigniter by using the following settings:
Go to the index.php file which is located at the root of your application.
And Change the environment to development as
define(‘ENVIRONMENT’, ‘development’);

    define('ENVIRONMENT', 'development');
/*
 *---------------------------------------------------------------
 * ERROR REPORTING
 *---------------------------------------------------------------
 *
 * Different environments will require different levels of error reporting.
 * By default development will show errors but testing and live will hide them.
 */

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

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

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

Which will solve your problem.


Advertisements

Add Comment

📖 Read More