On Tue, Jul 22, 2008 at 6:30 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> I have a user model which requires validation for multiple forms.
> This is what i have so far which covers adding a new user:
>
> I also have edit, reset password etc that i need to validate.  Any
> help would be appreciated.

This is the approach I'm using now for doing custom validation sets:

http://bin.cakephp.org/view/197943049

It overrides the default validates method (which is called during
save() on models) and allows for validation sets to be declared for
specific actions or custom validation sets to be defined.

-Jonathan

--~--~---------~--~----~------------~-------~--~----~
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