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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to