Answer the question
In order to leave comments, you need to log in
How to use yii widget for variable and not model?
Hello!
There is a yii widget for date/time picker ( date-time-picker ).
It is written that it should be used in this way:
use dosamigos\datetimepicker\DateTimePicker;
?>
<?= $form->field($model, 'date_from')->widget(DateTimePicker::className(), [
'language' => 'es',
'size' => 'ms',
... other params
]
]);?>
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