Explain what are hooks in codeigniter?



Explain what are hooks in codeigniter?..

Answer / 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

More CodeIgniter Interview Questions

What is middleware in codeigniter?

1 Answers  


What is ci_controller in codeigniter?

1 Answers  


What are helpers?

1 Answers  


What is the default controller used in codeigniter? How we can change it?

1 Answers  


How to enable codeigniter hook?

1 Answers  


What is hmvc codeigniter?

1 Answers  


What is codeigniter library and how we can load it?

1 Answers  


What is a token method in a csrf attack?

1 Answers  


Explain what is codeigniter?

1 Answers  


List some features provided by codeigniter?

1 Answers  


Explain codeigniter’s application flow chart?

1 Answers  


How to access config variable in codeigniter?

1 Answers  


Categories