CodeIgniter: display a custom view instead of a "Database Error" message

How can I show a custom view instead of a general error related to an unexpected database crash?

enter image description here

+3
source share
2 answers

The application folder has a folder called errors . There are all error filesthat appear when an error occurs.

If a database error occurs , the error_db.php file is displayed in the browser . You can edit it or replace it with your custom file.

Hope this helps.

+11
source

$db_debug = FALSE; - ,

+4

All Articles