gabordemeter wrote:
And the validation rule which makes sure that the respective email is
not already in the db fires and invalidates the email field. As the
email address is of course in the db (the user already signed up), I
would like to be able to remove this validation rule if the submitted
form is edit account, and only keep the rule active if the submitted
form is signup.

How can I do this in Cake respecting the MVC conventions?

You want to use the invalidate method for the signup form, for custom
controller validation and move the check for signup there. There is an
example of how to do it in the manual.

Check out: http://manual.cakephp.org/chapter/validation  as of today,
the relevent portion is the last paragraph and code block.

---
TJ Singleton


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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