See if this helps:

http://groups.google.com/group/cake-php/browse_thread/thread/6c2c27bbcdcb4e33

On Jan 30, 4:18 pm, "jakecake (newbie)" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I need to validate some fields in a model called User (id, name,
> email, password). That's quite easy with 1.2 rules.
>
> For exemple, it is easy to check that the password field is not empty
> when the user register, because an empty password is not valid. But on
> the over hand, when the user browse its profile (with a profile view),
> I want the password field to be empty if the user does'nt want to
> change it.
>
> So, how can I manage the validation in the model when the validation
> criteria depend of the situation? (during register, not empty, on
> profile page, empty is ok). Is it possible to change manualy the 
> $this->validate in the model, from the controler? Is it necessary to have a
>
> custom validation method?
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to