To pass data from a controller to a view, the data should be stored in an associative ________.
- Array
- Integer
- Object
- String
To pass data from a controller to a view in CodeIgniter, the data should be stored in an associative array. This array is then passed as the second parameter to the $this->load->view() function.
Loading...
Related Quiz
- For a multi-language application, a controller in CodeIgniter switches the language based on user preference using the ________ method.
- Explain the role of the 'hooks' directory in advanced CodeIgniter applications.
- To enable database caching in CodeIgniter, the $db['default']['cache_on'] setting must be set to ________.
- In OAuth, ________ ensures that tokens are only sent over HTTPS connections to protect against man-in-the-middle attacks.
- To prevent Cross-Site Scripting attacks, CodeIgniter provides a security filter known as ________.