InterviewSolution
Saved Bookmarks
| 1. |
What is hooks and how we can configure hooks in CodeIgniter? |
|
Answer» It is a type of EVENTS which can be called before and after the execution of a program in CodeIgniter. For example Hooks can be used where we need to check WHETHER a user is logged in or logged out before the execution of controller. It can be globally enabled or disabled by setting in the application/config/config.php PAGE It can be defined in application/config/hooks.php page. In CodeIgniter each hook is specified like an array with this prototype: |
|