The CodeIgniter helper function ________ is used to set JSON content type in HTTP headers.
- json_header()
- set_content_type('application/json')
- set_json_content_type()
- set_json_header()
The set_content_type('application/json') helper function is used in CodeIgniter to set the HTTP response headers to indicate that the content being sent is in JSON format.
Loading...
Related Quiz
- When integrating a third-party library that requires database interactions, which CodeIgniter feature is most crucial for seamless integration?
- In CodeIgniter, where are log files typically stored by default?
- When configuring a CodeIgniter application for a financial service, the first step in enhancing security should focus on ________.
- In client-side validation, which language is commonly used to validate form inputs before submission?
- In the context of SQL injection, what is the significance of using stored procedures?