Answer the question
In order to leave comments, you need to log in
How to order connection assets kartik?
I use a lot of widgets from kartik, but it became necessary to connect one script right after jquery in this way
in the main connected asset
public $depends = [
'backend\assets\MyAssets',
'backend\assets\MyYiiAssets',
'kartik\base\AssetBundle'
];
public $basePath = '@webroot';
public $baseUrl = '@web';
public $js = [
'js/main.min.js'
];
public $depends = [
'yii\web\JqueryAsset',
];
public $sourcePath = '@yii/assets';
public $js = [
'yii.js',
];
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question