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) { |
Welcome Guest, Not a member yet? Register Sign In |