Welcome Guest, Not a member yet? Register   Sign In
Accessing autoloaded library from model
#1

[eluser]mikegioia[/eluser]
Hi guys -

I know this is possible as I use the session/database libraries from models but for some reason I'm getting this error in one of my models:

Code:
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Course_model::$gmauth
Filename: models/course_model.php
Line Number: 123

I'm loading the library 'gmauth' in the autoloader which loads the model course_model. The library is being loaded correctly but for some reason when I try to call
Code:
$this->gmauth->dosomething()
from the course_model it barfs and throws this error.

I'd appreciate any help. Thanks!
Mike




Theme © iAndrew 2016 - Forum software by © MyBB