yii 2.0 jquery datepicker not working


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


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:


use yii\helpers\Html;

use yii\bootstrap\ActiveForm;


<?php //$form->field($model, ‘periodfrom’)


           'model' =&gt; &#036;model,

           'attribute' =&gt; 'ddDate',

           'language' =&gt; 'en',

           'dateFormat' =&gt; 'yyyy-MM-dd',



wat wrong in this code.

Please help me to fix this

Thank you

THIS error is not because of datepicker.

kindly check after commenting datepicker.

After commenting the date picker code in the views.

It runs with out an error

but enable the code it show’s an error


   echo &#036;form-&gt;field(&#036;model,'periodfrom')-&gt;widget(DatePicker::classname(),[ 

    'options' =&gt; ['placeholder' =&gt; 'Select periodfromDate'], 

    'pluginOptions' =&gt; [ 

        'format' =&gt; 'dd/mm/yyyy', 

        'todayHighlight' =&gt; true, 



    ]);   ?&gt;