I used yii 2.0 and use the j query date picker in the form but it shows an error
The following error is shown
An internal server error occurred.
The above error occurred while the Web server was processing your request.
Please contact us if you think this is a server error. Thank you.[/b]
In view my code is below:
<?php //$form->field($model, ‘periodfrom’)
DatePicker::widget([ 'model' => $model, 'attribute' => 'ddDate', 'language' => 'en', 'dateFormat' => 'yyyy-MM-dd', ]); ?>
wat wrong in this code.
Please help me to fix this