Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // registering the AssetBundle
- if( $this->settings->includeJS) {
- $this->view->registerAssetBundle(MyPluginAssets::class);
- }
- // registering the AssetBundle
- if( $this->settings->includeJS && $this->request instanceof Craftwebrequest) {
- $this->view->registerAssetBundle(MyPluginAssets::class);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement