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').
Loading...
Related Quiz
- In a scenario where a CodeIgniter application is failing randomly, a unit test should focus on ________ to identify potential issues.
- In CodeIgniter, which utility is commonly used to backup a database?
- The function ________ in CodeIgniter is used to reverse all database actions since the last commit.
- In CodeIgniter, migrations are typically stored in the ________ directory.
- CodeIgniter's Model method ________ is used for pagination of query results.