Welcome Guest, Not a member yet? Register   Sign In
Getting "Undefined property" error message
#4

[eluser]mddd[/eluser]
Inside a controller or model, $this means: the CI object.
But inside a library, $this means: the library. You have to get the CI object and then call the other library through that object.

So you should change this:
Code:
$this->error_handler->get_error($e, $_SERVER['HTTP_REFERER']);
into this:
Code:
$CI =& get_instance(); // get a reference to the CI object
$CI->error_handler->get_error($e, $_SERVER['HTTP_REFERER']); // call the error through the CI object


Messages In This Thread
Getting "Undefined property" error message - by El Forum - 06-14-2010, 06:00 PM
Getting "Undefined property" error message - by El Forum - 06-14-2010, 07:26 PM
Getting "Undefined property" error message - by El Forum - 06-15-2010, 10:18 AM
Getting "Undefined property" error message - by El Forum - 06-16-2010, 01:58 AM
Getting "Undefined property" error message - by El Forum - 06-16-2010, 09:39 AM
Getting "Undefined property" error message - by El Forum - 06-16-2010, 11:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB