How do I pass a parameter to a hook in CodeIgniter? |
In CodeIgniter, how can I pass parameters from the context where the hook is called?
Example: File_Where_Hook_is_Called.php: PHP Code: $this->hooks = load_class('Hooks', 'core'); config/hooks.php: PHP Code: $hook['site_export_before_delete'][] = array( application/modules/foo/controllers/Foo.php: PHP Code: public function export_site($filename) { |
Messages In This Thread |
How do I pass a parameter to a hook in CodeIgniter? - by lucasbustamante - 07-26-2018, 11:19 AM
|