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

后端 未结 2 2094
一个人的身影
一个人的身影 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 15:03

    You should set $db_debug = FALSE; in your config database settings on your production server - you should NEVER show a raw database error message to your users, as it is a massive security risk

提交回复
热议问题