N
N
Nick Tit2015-11-12 16:40:02
Yii
Nick Tit, 2015-11-12 16:40:02

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

1 answer(s)
T
totudub, 2015-11-12
@tit777

Ajax validation: https :
//github.com/yiisoft/yii2/blob/master/docs/g... g...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question