在使用wbraganca动态表单时,jui \ datepicker日期格式不能以第一种形式工作

时间:2018-01-26 07:12:59

标签: yii2

我正在使用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

0 个答案:

没有答案