Answers for "yii2 jquery head"

PHP
1

yii2 jquery head

// Add this your view file:
$this->registerAssetBundle(yii\web\JqueryAsset::className(), View::POS_HEAD);
Posted by: Guest on March-13-2022
1

yii2 jquery head

// 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 ],
            ],
        ],
    ],
],
Posted by: Guest on March-13-2022

Browse Popular Code Answers by Language