I've been hunting around for the best way to have action-based
validation. I know there's an "on" key that may be used but I can't
find anything online about how to use it properly. Anyone know where
it's documented?

I came across this thread, linked from the FAQ:

http://groups.google.com/group/cake-php/browse_frm/thread/e2e840434c733cfa/0d03101191f5674a

I like the method worked out by keymaster but left unsaid is how to
know what the present action is. Nothing in the source jumps out at
me.

Also, I'm curious about beforeValidate() options param. Once again, a
mysterious options array is available with nary a word on using it.
:-(

ps: note that keymaster's beforeValidate() is missing the return boolean.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to