Welcome Guest, Not a member yet? Register   Sign In
Library class loaded, but I can't access it from a model??
#3

[eluser]nikefido[/eluser]
That's very contrary to what I was expecting -

I was under the impression that the loader class instantiated the object for you (and treated it as a singleton, so you always received the same class instance).

Additionally, the object is actually being instantiated (you can tell because the "yay" is outputted to the browser) so there is an instance of the object somewhere to be found...

I'd love to make my getUser a static function, but I'm sure there would be issues with my __autoload implementation Sad


Messages In This Thread
Library class loaded, but I can't access it from a model?? - by El Forum - 01-05-2009, 12:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB