kepala jQuery yii2
// Add this your view file:
$this->registerAssetBundle(yii\web\JqueryAsset::className(), View::POS_HEAD);
Tender Turkey
// Add this your view file:
$this->registerAssetBundle(yii\web\JqueryAsset::className(), View::POS_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 ],
],
],
],
],