[eluser]tsan[/eluser]
I get an error when I have a model load command in controller. Controllers and views works, but models not.
My simple model, which is in models directory , filename testmodel.php.
Code:
Class Testmodel extends Model {
function Testmodel() {
parent::Model();
}
}
Then in controller I load it with command $this->load->model('testmodel.php');
Class Testmodel extends Model { function Testmodel() { parent::Model(); } }
Fatal error: Class 'Testmodel' not found in /var/www/ci_test/system/libraries/Loader.php on line 177
For me it looks that CI has found everything as it shows the code in testmodel.php. Still an error Class not found. I tested various ways, different controller, model and upper/lowercase
names , Url config settings in config file but always the same. If I have more functions in model error message shoes it all. I'm using Ubuntu LAMP server. CI version is the latest 1.6.2, I just started using CI.