how to get intance of CI in codeigniter's Exception library
i just want to run $CI=&get_instance in Exception library of codeigniter. but its not running there. while the other Classes in Library folder are able to create such instance, but the Exception is not. the reason i want to do this is , i w开发者_开发问答ant to use this instance to load a view page in show_404(){} method. thanks in advance
Are you thinking about extending CI's Exceptions library? if so, you may want to do
<?php
class MY_Exceptions extends CI_Exceptions {
// your code here
}
then you don't need to do $CI &= get_instance();
精彩评论