How to get show_error() in CodeIgniter to load a view?
问题 I need to load a head view and a foot view in all my pages. But show_error uses its own complete template. And it stops execution after it loads this template, so the footer wouldn't even load if I wanted to. Should I override this method or is there another way? 回答1: You can create a custom layout to the error messages in the application/errors directory. EDIT: If you want to use your existing files you can do one of the following: If you only require the 404 error page, you can set a custom