on submit i get the error: Property "User.PasswordConfirm" is not defined.
i think yii is giving me the error because the field doesn't exist in the database.
how can i get this working?
below the code:
User model:
public function rules()
{
return array(
array('GroupId, FirstName, LastName, Email, Username, Password, PasswordConfirm', 'required'),
array('Email', 'email'),
array('Password', 'compare', 'compareAttribute' => 'PasswordConfirm')
);
}
public function safeAttributes()
{
return array('GroupId', 'FirstName', 'LastName', 'Email', 'Username', 'Password', 'PasswordConfirm');
}
Piece of the form
<li>
<?php echo CHtml::Label('Nogmaals', 'User_PasswordConfirm'); ?>
<?php echo CHtml::activePasswordField($user, 'PasswordConfirm', array('value' => '')); ?>
</li>

Help

This topic is locked
















