Answer the question
In order to leave comments, you need to log in
How to pass class name in Twig?
How does Yii2, using the Twig template engine, replicate this Yii2 construct:
<?= $form->field($model, 'attrubute')->widget(DatePicker::className(), []); ?>
date_picker_widget()
(it works), but as part of the ActiveForm widget.
Answer the question
In order to leave comments, you need to log in
{{ form.field(model, 'attribute').widget('yii\\jui\\DatePicker')|raw }}
Error
Class 'yiijuiDatePicker' not found
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question