Codeigniter Models

Codeigniter Models

Codeigniter (CI) - In any application you have to call a capacity to recover some data from the database. Models obligation is to deal with all information rationale and portrayal and load information in the perspectives. It is put away in application/models.
Models are stacked in the conntroller's document with the accompanying code $this->load->model('ModelName');

In the event that in the event that your model record is situated in sub-index of model organizer, then you need to specify the full way. For instance, if your document area is application/controller/models/ModelName. At that point, your record will be stacked as demonstrated as follows,

$this->load->model('ModelName');
Lebih baru Lebih lama

نموذج الاتصال