The method ________ in a controller is used to load models in CodeIgniter.

  • $this->load->model()
  • load->model()
  • load_model
  • load_model()
In CodeIgniter, to load models in a controller, you use the syntax $this->load->model('ModelName'). The load is an object, and model() is a method of that object. So, the correct syntax is $this->load->model('ModelName').
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *