我在yii2项目中启动了vagrant,视图中显示了注释代码,我已经为这个问题苦苦挣扎了第二天,我不知道出了什么问题?
编码:
<div class="col-md-4">
<!-- --><?//= $form->field($model, 'client_phone')->textInput(['placeholder' => 'Например 037-60-43'])->label('Телефон клиента') ?>
<?= $form->field($model, 'client_phone')->widget(\yii\widgets\MaskedInput::className(), [
'mask' => '+7 (999) 999-99-99',
])->label('Телефон клиента');
?>
</div>
它显示如下:
<div class="col-md-4">
<!-- --><!--?//= $form--->field($model, 'client_phone')->textInput(['placeholder' => 'Например 037-60-43'])->label('Телефон клиента') ?>
<div class="form-group field-propertysearch-client_phone">
<label class="control-label" for="propertysearch-client_phone">Телефон клиента</label>
...