views:

36

answers:

1

Is there any way to access the current instance of CodeIgniter from an error page? For example, I want to load views from application/error/error_404.php, but using $CI =& get_instance(); to get a reference to the CodeIgniter system doesn't work. Is this a limitation of working in error pages, and are there any workarounds?

+1  A: 

You don't need to load a view from a place other than Views. The workaround is to customize the error page itself. Have a look at:

Sarfraz