What is hooks and how we can configure hooks in CodeIgniter?
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
It can be defined in
application/config/hooks.php page. In CodeIgniter each hook is specified like an array with this prototype: