zinzinday
(Zinzinday)
1
namespace is yii\jui\DatePicker
use:
<?php use yii\jui\DatePicker;?>
<?php echo $form->field($model,‘birthday’)->widget(DatePicker::className());?>
Error:
Fatal Error – yii\base\ErrorException
Class ‘yii\jui\DatePicker’ not found
Please help to me
Thank you.
samdark
(Alexander Makarov)
2
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.
samdark
(Alexander Makarov)
4
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…
binkabir
(Binkabir)
7
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 "*"