How do I override the not found page in CodeIgniter?

前端 未结 3 1256
余生分开走
余生分开走 2021-01-26 18:29

I have a CodeIgniter application that\'s generally working how I\'d like it to, but occasionally a user will go to a page that does not exist and is greeted with an unfriendly e

3条回答
  •  逝去的感伤
    2021-01-26 19:19

    If you're looking at handling errors with your own custom page, you can modify the error templates found in application/errors. If you have a reason to based on your own code, you can manually send the user to one of these pages using show_404 or show_error - check out the Error Handling page in the official docs.

提交回复
热议问题