are trying to achieve. Where is validatePassword used?
Also: http://www.milesj.me/resources/snippet/17
On Oct 28, 3:59 pm, centr0 <centrosc...@gmail.com> 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 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:
Post a Comment