Welcome Guest, Not a member yet? Register   Sign In
User class not found
#6

(11-04-2015, 09:14 AM)Martin7483 Wrote: How and to which class are you passing the utilities or user object?

Did a quick test with two libraries. One I called Utilities and the second one Test.
I then did this:
PHP Code:
$this->load->library('Utilities');
$this->load->library('Test', array($this->utilities)); 

Got 0 errors with this. So Utilities is not a reserved name within CI nor does CI change it in anyway that I chould see.

Thanks,now I see that the problem is in the instanciation of the other class (Test in your example), which I did not perform correctly.
But now after the commands

$this->load->library('Test', array($this->utilities)); //here no error occurs
--
$vars = get_object_vars($this->Test);
var_dump($vars);

I get the error
Message: Undefined property: Test::$Test
and
Message: get_object_vars() expects parameter 1 to be object, null given
Reply


Messages In This Thread
User class not found - by helmut - 11-02-2015, 07:38 AM
RE: User class not found - by sv3tli0 - 11-02-2015, 08:02 AM
RE: User class not found - by helmut - 11-02-2015, 08:04 AM
RE: User class not found - by helmut - 11-04-2015, 08:55 AM
RE: User class not found - by wolfgang1983 - 11-09-2015, 02:06 PM
RE: User class not found - by Martin7483 - 11-04-2015, 09:14 AM
RE: User class not found - by helmut - 11-05-2015, 04:30 AM
RE: User class not found - by pdthinh - 11-05-2015, 04:37 AM
RE: User class not found - by Martin7483 - 11-05-2015, 04:48 AM
RE: User class not found - by helmut - 11-07-2015, 03:24 AM
RE: User class not found - by Martin7483 - 11-09-2015, 11:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB