Welcome Guest, Not a member yet? Register   Sign In
Extending exceptions.. and loading libraries?
#4

[eluser]Colin Williams[/eluser]
So, looks like you'll need to use load_class(). Also, I had to extend CI_Exceptions and not Exceptions to even get it to work.

Code:
class MY_Exceptions extends CI_Exceptions {
  
  function show_404($page = '')
  {
     $view =& load_class('View');
     $view->method();
     exit;
  }

}


Messages In This Thread
Extending exceptions.. and loading libraries? - by El Forum - 08-28-2008, 08:47 PM
Extending exceptions.. and loading libraries? - by El Forum - 08-28-2008, 09:34 PM
Extending exceptions.. and loading libraries? - by El Forum - 08-28-2008, 09:47 PM
Extending exceptions.. and loading libraries? - by El Forum - 08-28-2008, 09:49 PM
Extending exceptions.. and loading libraries? - by El Forum - 08-28-2008, 09:51 PM
Extending exceptions.. and loading libraries? - by El Forum - 08-28-2008, 10:08 PM
Extending exceptions.. and loading libraries? - by El Forum - 08-28-2008, 10:31 PM
Extending exceptions.. and loading libraries? - by El Forum - 08-28-2008, 11:08 PM
Extending exceptions.. and loading libraries? - by El Forum - 08-28-2008, 11:21 PM
Extending exceptions.. and loading libraries? - by El Forum - 08-29-2008, 12:56 AM
Extending exceptions.. and loading libraries? - by El Forum - 08-29-2008, 01:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB