I would like to use datepicker in my form. So for that I have used the jui with below step:
"yiisoft/yii2-jui": "~2.0.0"
in composer.json at root in my folder.
use yii\jui\DatePicker;
<?= $form->field($model,'country_created_date')->widget(DatePicker::className(), ['clientOptions' => ['defaultDate' => '2014-01-01']]) ?>
And when I run the form I am getting this kind of error:
"Class 'yii\jui\DatePicker' not found"
I have also tried to update the composer using the composer update.
Any body can help me please.
Make sure that fxp asset plugin is installed:
composer global require "fxp/composer-asset-plugin:~1.1.1"
After installing it try composer update.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With