How do you load a custom library in a CodeIgniter controller?
- $this->library->load('custom_library');
- $this->load->library('custom_library');
- $this->load_library('custom_library');
- $this->load_library('custom_library');
In a CodeIgniter controller, you can load a custom library using the syntax: $this->load->library('custom_library');. This initializes the library, making its functions and methods available within the controller.
Loading...
Related Quiz
- For enhanced security, file upload paths should be kept outside the ________ directory.
- The database configuration file in CodeIgniter is located at application/config/________.php.
- How does server-side validation differ from client-side validation in the context of file uploads?
- When a web application receives an OAuth access token, the next step is to use it to ________.
- Describe a scenario where creating a custom Helper in CodeIgniter would be beneficial over using built-in Helpers.