Create them as normal form inputs, check/validate them in the model and then unset them from $this->data in the model when you're done.
Jeremy Burns Class Outfit http://www.classoutfit.com On 20 Oct 2011, at 15:26, Shukuboy wrote: > Hi, > > I've been looking around for a couple of days to see whether it's > possible to have a couple of fields defined in the Model for the > purpose of validation, but let Cake know not to persist them. > > A good example would be a 'Confirm' field for user registration. I'd > like to be able to validate 'Confirm' against 'Password' by specifying > custom validation in the Model. I know this can be done in the > controller easily but is there a way to do this in the Model ? > > Cheers, > Shukuboy > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group at > http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
