Hi,

I am not sure whether CakePHP suport different validation rules for
the same model.

My problem is to validate user.
In the registration form, I have to validate username/password/
firstname/lastname to be the correct value.
But to the login form, I only need user to input username/password.

If I specified the validation rules for the registration form in the
user model. Then in the login form, I will always got error result
because it is still checking rules for firstname/lastname.

Does CakePHP provide some standard way to solve that? So I can say I
want check 4 fields when do registration and only check 2 fields when
do login.

Thanks for your help.

Best Regards,
Yang Sun

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