Answer the question
In order to leave comments, you need to log in
How to connect js files to extension via Asets?
Actually, I didn’t find it anywhere in the documentation, only based on examples I guess
that we need to create an assets folder in the extension, create a file MyExtensionsAssets
inherited from AssetBundle
, but then the question is to work through properties css
and javascript
or through a method init()
and how to connect jqueryUi
, and how to connect your script, and then another question is how connect assets like this:MyExtensionsAssets::register($this);
Answer the question
In order to leave comments, you need to log in
you need to create an assets folder in the extension create a file MyExtensionsAssets inherit from AssetBundle
You need to connect in view. You will not add all js for the entire module, for example? So here the correct answer depends heavily on what kind of extension you have.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question