If you have your validation rules set up in the model, they will automatically 
be triggered each time you do any save action against the model - that is, 
unless you have changed something to prevent it. You don't need to call the 
validate method at all. You can, however, do if ($this->ModelName->validates()) 
as a test before doing the actual save, but that is rarely necessary.

Jeremy Burns
Class Outfit

[email protected]
http://www.classoutfit.com

On 3 Sep 2010, at 13:15, amin wrote:

> Hi,
> 
> Can u plz help me out, how to call validation for multiple actions of
> a controller
> 
> E.g. a user controller, in user controller add, signup, forgot
> password .. etc are actions
> 
> now in model class User extends AppModel{
> 
> }
> 
> how to validate mentioned actions validation in User model ????
> 
> I have tried $validate method but it only allow for only one action
> 
> so plz help me out.
> 
> thnks in advance
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
> 
> 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

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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