why models are not loading in autoload |
-
Lohith c
Newbie
-
Posts: 7
Threads: 2
Joined: Dec 2019
Reputation:
0
(12-14-2019, 02:20 PM)Wouter60 Wrote: Make sure your models are in the application/modelsĀ folder and start with a capital letter.
When loading a model with $this->load->model( ... ) don't use a capital letter.
So, it's perfectly ok to load the Vacancy_model.php with $this->load->model('vacancy_model');
To refer to methods (functions) inside the model: $this->vacancy_model->function_name(); okay we will try sir
|