Answer the question
In order to leave comments, you need to log in
Question about using a mask?
what is the essence of the mask form the phone
<?= $form->field($model, 'phone')->widget(\yii\widgets\MaskedInput::className(), [
'mask' => '+9(999)-999-99-99',
'clearIncomplete'=>true
]) ?>
Answer the question
In order to leave comments, you need to log in
write logic in beforeSave and afterFind. Accordingly, clean from brackets, the "+" sign and spaces before saving and add after the selection.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question