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 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:
BY Best Interview Question ON 13 Jan 2019