[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!