This is probably a newb question but how do I call a model that has been auto loaded?
I had:
$this->load->model('Test');
$data['members'] = $this->Test->get_members();
But now I don’t need to load it since it’s auto loaded. I’m getting this error:
Undefined property: Members::$Test
Normally you have to load your model, if autoloaded not:
If you’ve a function in your model like:
You can load this and put it in a var to send it to a view: