That worked a treat Jon, thanks a lot.
And apologies for the multiple posts, I have no idea how that
happened, perhaps a moderator could delete all the spares!!
On Jan 31, 10:30 pm, Jon Bennett [EMAIL PROTECTED] wrote:
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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---