InterviewSolution
Saved Bookmarks
| 1. |
What are the available hooks in codeIgnitor. |
|
Answer» Hooks are the events which can be called before or after the execution of a program. Hooks stored in a specific DIRECTORY allows the codeIgnitor execution PROCESS without MODIFYING core FILES. There are two hook files in CodeIgniter. One is application/config/hooks.php folder and other is application /hooks folder.
To define a hook : $hook['post_controller'] = array( 'class' => 'Classname', 'function' => 'functionname', 'filename' => 'filename.php', 'filepath' => 'hooks', 'params' => array('element1', 'element2', 'element3') );
List of available hooks are :
|
|