2020-05-27 18:46:16 +02:00
|
|
|
<?php
|
|
|
|
|
2021-06-08 09:52:11 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-04-02 17:20:02 +00:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* ERROR DISPLAY
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Don't show ANY in production environments. Instead, let the system catch
|
|
|
|
* it and display a generic error message.
|
2023-11-15 16:17:43 +00:00
|
|
|
*
|
|
|
|
* If you set 'display_errors' to '1', CI4's detailed error report will show.
|
2020-05-27 18:46:16 +02:00
|
|
|
*/
|
2024-04-26 09:26:22 +00:00
|
|
|
error_reporting(E_ALL & ~E_DEPRECATED);
|
|
|
|
// If you want to suppress more types of errors.
|
|
|
|
// error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
|
2020-05-27 18:46:16 +02:00
|
|
|
ini_set('display_errors', '0');
|
|
|
|
|
2021-04-02 17:20:02 +00:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* DEBUG MODE
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Debug mode is an experimental flag that can allow changes throughout
|
|
|
|
* the system. It's not widely used currently, and may not survive
|
|
|
|
* release of the framework.
|
2020-05-27 18:46:16 +02:00
|
|
|
*/
|
2021-04-02 17:20:02 +00:00
|
|
|
defined('CI_DEBUG') || define('CI_DEBUG', false);
|