我正在使用wbraganca
动态表单,在这个动态表单中,datepicker日期格式在第一个form.code中无法正常工作。下面给出了
<?= $form->field($modelNominee, "[{$i}]dateOfMarriage")->widget(DatePicker::classname(), [
'language' => 'en-UK',
'dateFormat' => "dd/M/yyyy",
'options' => ['class'=>'cust-form-control marriage-date','placeholder'=>'Date of Marriage','autocomplete'=>'off','readOnly'=>true,'aria-label' => 'Date of Marriage'],
'clientOptions'=>[
'changeMonth'=>true,
'changeYear'=> true,
'maxDate'=> '+0',
],
])->label(false