namespace is yii\jui\DatePicker
<?php use yii\jui\DatePicker;?>
<?php echo $form->field($model,‘birthday’)->widget(DatePicker::className());?>
Fatal Error – yii\base\ErrorException
Class ‘yii\jui\DatePicker’ not found
Please help to me
jui is extension. Check https://github.com/yiisoft/yii2-jui page on how to install it.
Followed those instructions to the letter. It just throws an internal server error.
Any details? What’s error message? What’s the stack trace?
Do you see the yiisoft/yii2-jui folder inside the vendor directory and does it have the DatePicker class?
Turns out that something went bad with Composer and the files were not there (the directory was).
Yet another minus for composer…
I also came across this mess and i fixed it by re-install the jui
> sudo php composer.phar require --prefer-dist yiisoft/yii2-jui "*"