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

(12-14-2019, 09:13 AM)InsiteFX Wrote: To load a model in a Controller it is done like this.

PHP Code:
// load in a controller'
$this->load->model('modelName''aliasName'); 

Also to access a method in the controller.

PHP Code:
// load in controller and access method.
$this->load->('vacancy_model');
$this->vacancy_model->insertVacancyFunction(); 


files are not loading if i did like aboveĀ 
Reply


Messages In This Thread
RE: why models are not loading in autoload - by Lohith c - 12-14-2019, 09:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB