CodeIgniter Forums
why models are not loading in autoload - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: why models are not loading in autoload (/showthread.php?tid=75049)

Pages: 1 2


RE: why models are not loading in autoload - Lohith c - 12-15-2019

(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