Hello everyone, I’m working with yii2 and I installed it via composer, then I installed jui via composer too sucesfully there was no problem. The problem is when I used a DatePicker in a form, I got a message like this: " PHP Fatal Error – yii\base\ErrorException Class ‘DatePicker’ not found".
I have to say composer creates a folder "yii2-jui" in vendor/yiisoft
in extension.php I got this:
'yiisoft/yii2-jui' =>
array (
'name' => 'yiisoft/yii2-jui',
'version' => '2.0.1.0',
'alias' =>
array (
'@yii/jui' => $vendorDir . '/yiisoft/yii2-jui',
),
),
in the beggining of DatePicker.php I have this line : namespace yii\jui;
in the form I added: use yii\jui\DatePicker;
also I tried to use the datepicker in this way: widget(\yii\jui\DatePicker::className()
and this: widget(DatePicker::className()
but it still doesn’t work, please somebody help me.Thank you