CodeIgniter Forums
Modifying the $hooks array - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Modifying the $hooks array (/showthread.php?tid=14368)



Modifying the $hooks array - El Forum - 12-30-2008

[eluser]simshaun[/eluser]
Is there any way that you can modify the $hooks arrray (config/hooks.php) from within a library?

I ask because I plan on adding custom hooks to the $hooks array, but must do so from within a library.

At the moment I'm adding $config['myhooks'] = array() in config/config.php and my library makes use of config->set_item('item_name', 'item_value') to add to the myhooks array.


Modifying the $hooks array - El Forum - 01-11-2009

[eluser]simshaun[/eluser]
Bump. I'd still like to know if this is possible.

If at all possible, I'd like to do this without overloading the core.