Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CodeIgniter: Display custom view instead of 'Database Error' message

Tags:

codeigniter

How Can I show a custom view instead of the generic error attached in cases of the database going down unexpectedly?

enter image description here

like image 813
Quadrant6 Avatar asked Nov 29 '22 14:11

Quadrant6


1 Answers

In applications folder there is a folder named errors. There are all error files which comes up when an error is occurred.

When database error is occured, error_db.php file is shown in browser. You can edit it or replace that with your custom file.

Hope this helps.

like image 95
AlphaMale Avatar answered Dec 04 '22 09:12

AlphaMale