Hi,
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
[b]
Error (#1)
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
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
?>
<?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
Thank you