[eluser]msteudel[/eluser]
Hi All,
I would like to extend one of my models. (I know I could do a MY_model setup but I'm just interested in extending this one)
I have my models located in:
system/application/model
My model is
Code:
class user_model extends Model {
// code ...
}
And I want to extend that:
e.g.
Code:
class student_model extend user_model {
// code ...
}
But when I do that I get:
Code:
Fatal error: Class 'user_model' not found in /path/trunk/system/application/models/student_model.php
Is there a place I should add a include directive? I could autoload it in autoload file, but I don't want to always load that model all the time.
Any suggestions?
Thanks, Mark