It doesn't help if you don't explain what your are doing and what you are trying to achieve. Where is validatePassword used?
Also: http://www.milesj.me/resources/snippet/17 On Oct 28, 3:59 pm, centr0 <[email protected]> wrote: > For the life of me i cant figure out why im getting a parse error. > > <?php > class User extends AppModel { > var $name = 'User'; > var $belongsTo = array('Group'); > var $validate = array( > 'email' => array( > 'rule' => 'email', > 'message' => 'Email address is required.' > ), > 'password' => array( > 'rule' => 'alphaNumeric', > 'required' => true, > 'message' => 'Password is required.' > ), > 'confirm_password' => array( > 'rule' => 'alphaNumeric', > 'required' => true, > 'message' => 'Password is required.' > ) > ); > > function validatePassword(password1 = null, password2 = null) { > }} > > ?> > > it happens when i add args to the validatePassword(). if they don't > have args it runs fine. any ideas? am i crazy? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
