Registration Form

I am making a sign-up for my site. How can i ask for retype password and match with the password for a valid registration? I would be grateful if anyone could help me out.

Add


public $passwordRepeat;

to your model.

Assuming you have a "password"-column in your schema, add this validation rule to your model:


array('passwordRepeat', 'compare', 'compareAttribute' => 'password')

Should give you a clue.

why not try already developed modules such as Yii-user , Yii-user-management