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

后端 未结 2 2103
一个人的身影
一个人的身影 2020-12-19 14:18

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

2条回答
  •  一个人的身影
    2020-12-19 14:44

    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.

提交回复
热议问题