[eluser]Tommy Ready[/eluser]
I am using codeigniter in a module based system and inside of my module directory I have the following directories:
my_module
>> controllers
>> models
>> views
Basically Im trying to load a model that is inside this structure from my modules controller
Code:
$this->load->model('my_model');
Here is my controller
Code:
class Mymodule extends CI_Controller
{
public function index()
{
$this->load->model('my_model');
}
}
my model
Code:
Class My_Model Extends CI_Model {
function __construct() {
// Call the Model constructor
parent::__construct();
}
}
Not sure whats wrong but I get the error:
Unable to locate the model you have specified: my_model