> I need to bypass beforeFilter() on certain actions in my controller
> but leave it in place for the rest. Is there a simple way to do this?
you could check the name of the action in the beforeFilter I think like so:
function beforeFilter ()
{
if ($this->action == 'my_action_name' || $this->action ==
'my_other_action_name')
{
// perform filtering now!
}
else
{
// do nothing!!
}
}
hth
jon
--
jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---