Answer the question
In order to leave comments, you need to log in
Yii2 how to add ajax check for uniqueness of username and email fields?
Here is the registration form:
<?php
$form = ActiveForm::begin();
echo $form->field($model,'username');
echo $form->field($model,'email');
echo $form->field($model,'password')->passwordInput();
echo $form->field($model,'repeatpassword')->passwordInput();
echo Html::submitButton('Reg');
ActiveForm::end();
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question