Yii2 : Something Which works in Backend doesn't work on frontend
<p>I'm using Yii2-advanced-app. I'm using some widgets like <code>'kartik\date\DatePicker', 'wbraganca\dynamicform\DynamicFormWidget'</code> in my project. </p>

<p>They are working well with my backend. But if I use the same code with frontend, they doesn't work. Suppose I clicked on date to choose one, it shows the datepicker(If I am using it with backend code), it looks like this:</p>

<p><a href="https://i.stack.imgur.com/OZR0O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OZR0O.png" alt="datepicker"></a>)</p>

<p>but if I'm using the same on frontend side, it doesn't work. That is, nothing happens after clicking on datepicker in frontend. </p>

<p>Why it doesn't work? The same is happening with <code>wbraganca dynamic form</code>. </p>

<p><em>Please note that I'm using a custom theme/template in my frontend.</em></p>

<p>My '_form.php' in backend is as follows -</p>

<pre><code>use kartik\date\DatePicker;
&lt;?=  $form-&gt; field($model, 'ven_established_date')-&gt;widget(DatePicker::classname(), [

        'options' =&gt; ['placeholder' =&gt; 'Enter Established date...'],
        'pluginOptions' =&gt; [
            'autoclose' =&gt; true,
            'format' =&gt; 'yyyy-M-dd'
        ]
    ]);
    ?&gt;
</code></pre>

<p>And, the same in frontend is as follows - </p>

<pre><code>use kartik\date\DatePicker;
&lt;?=  $form-&gt; field($model, 'ven_established_date')-&gt;widget(DatePicker::classname(), [

        'options' =&gt; ['placeholder' =&gt; 'Enter Established date...'],
        'pluginOptions' =&gt; [
            'autoclose' =&gt; true,
            'format' =&gt; 'yyyy-M-dd'
        ]
    ]);
    ?&gt;
</code></pre>

<p>Still it works in backend but not in frontend....</p>