Welcome Guest, Not a member yet? Register   Sign In
Hooks only 1 controller
#1

[eluser]josepichu[/eluser]
Hi!

Can i aply a hook in a unique controller ??? how??

edit: I have my index controller and the rest, but I only want to execute an auth function to the rest of controllers. T have made this:

Code:
$hook['pre_controller'] = array(
                                'class'    => '',
                                'function' => 'control_auth',
                                'filename' => 'control_auth.php',
                                'filepath' => 'hooks'
                                );

but with this code control_auth.php is execute in all the application controllers. I have seen the user guide.

thks!


Messages In This Thread
Hooks only 1 controller - by El Forum - 03-05-2012, 02:25 AM
Hooks only 1 controller - by El Forum - 03-05-2012, 08:00 AM
Hooks only 1 controller - by El Forum - 03-05-2012, 11:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB