Sunday, July 5, 2009

Re: User account creation

On Jul 5, 2:31 am, Sonicwallz <sonicwallz2...@yahoo.com> wrote:
> I am trying to create a form that creates a new user. One of the
> things I am validating is using a confirm password. Can I do this with
> the rest of the validation in the Model code? Or do I have ot do this
> in the controller before it is saved?

You do this in the model. There's an article in the Bakery on this:

http://bakery.cakephp.org/articles/view/using-equalto-validation-to-compare-two-form-fields


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: