function validatePassword(password1 = null, password2 = null) {
...should be....
function validatePassword($password1 = null, $password2 = null) {
On Wed, Oct 28, 2009 at 10:59 PM, centr0 <centroscape@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