adspace


Explain what are hooks in codeigniter?

Answer Posted / Gaurav Srivastav

Hooks in CodeIgniter are a way to extend the functionality of existing classes. They allow you to 'hook' into various points within the framework's flow and execute custom code when those points are reached.nn```phpn$hook['pre_system'][] = array('class' => 'MyHook', 'function' => 'my_function', 'filename' => 'mypath/MyHook.php', 'parameters' => array());n```

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to add / link an images/css/javascript from a view in ci?

717