dektrium / yii2-user additional field

Using this guide http://yii2-user.dmeroff.ru/docs/adding-new-field-to-user-model i’ve added a field to registration form. Now in admin mode it can be changed but not in user mode, e.g. if oppening /user/settings/account than the value is not displayed therefore not changing.

Where shout changes be made to have that field available to view and change by the user on it’s will?

you need to add the field in the views/settings/account file just like admin




<?= $form->field($model, 'email') ?>


<?= $form->field($model, 'username') ?>


<?= $form->field($model, 'new_password')->passwordInput() ?>

//...

// like so


<?= $form->field($model, 'your_field')->textInput() ?>

//...