Answer the question
In order to leave comments, you need to log in
How to correctly include scripts in a view?
How can I connect the script after connecting all the scripts (specifically interested in jQuery) I
tried this way.
$this->registerJsFile(Yii::getAlias('@backendWebroot').'/js/morris.min.js',['position' => yii\web\View::POS_READY]);
Answer the question
In order to leave comments, you need to log in
make a separate asset for this set of scripts/styles. set a dependency and just register on the page
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question