Question : yii2 jquery head
Answered by : tender-turkey-3o1pfvrdrqo8
// Add this your view file:
$this->registerAssetBundle(yii\web\JqueryAsset::className(), View::POS_HEAD);
Source : | Last Update : Sun, 20 Mar 22
Question : yii2 jquery head
Answered by : tender-turkey-3o1pfvrdrqo8
// Configure the jquery in the component section of your main.php or main-local.php
'components' => [ 'assetManager' => [ 'bundles' => [ 'yii\web\JqueryAsset' => [ 'jsOptions' => [ 'position' => \yii\web\View::POS_HEAD ], ], ], ],
],
Source : | Last Update : Sun, 20 Mar 22