Welcome Guest, Not a member yet? Register   Sign In
why models are not loading in autoload
#11

(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
Reply


Messages In This Thread
RE: why models are not loading in autoload - by Lohith c - 12-15-2019, 10:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB