Answer the question
In order to leave comments, you need to log in
Why is there an error when accessing the 'id' key in a php array?
the essence of the problem is that an array of parameters is passed to the widget,
in the form
'paramsArr' => ["data-range"=>"true" ,
'data-multiple-dates-separator'=>" - ",
'data-min-view'=>"months",
'data-view'=>"months",
'id' => 'datepicker-summary',
"data-date-format"=>"MM yyyy"],
Array
(
[placeholder] => Начало работы
[class] => datepicker-here
[data-position] => right bottom
[data-range] => true
[data-multiple-dates-separator] => -
[data-min-view] => months
[data-view] => months
[id] => datepicker-summary
[data-date-format] => MM yyyy
)
echo $form->field($model, $field)->textInput($params)->label($label);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question