To prevent direct access to a controller's method in CodeIgniter, prefix the method name with ________.
- private
- public
- secret
- underscore
To prevent direct access, prefix the method name with an underscore (_). CodeIgniter considers methods with an underscore as private, making them inaccessible via a URL. This enhances security by restricting direct access to internal methods.
Loading...
Related Quiz
- ________ is a technique used to verify whether an input adheres to a specified format, like an email address.
- A developer creates a custom logging library in CodeIgniter for enhanced application monitoring. The appropriate method to integrate this library into the application's workflow is ________.
- What is the primary purpose of OAuth in web applications?
- To view detailed benchmarking data in CodeIgniter, the ________ method must be enabled in the controller.
- What is the primary role of an OAuth authorization server?