Wiki articles tagged with "assets"

Showing 1-5 of 5 items.

Boost composer-asset-plugin update speed

Created 7 years ago by schmunk, updated 7 years ago by samdark.

If you're using a lot of bower and npm assets with Yii 2.0 you might encounter long running composer update tasks.

6 0
6 followers
Viewed: 28 201 times
Version: 2.0
Category: Tips

Yii2cdn Component

Created 7 years ago by junaidatari, updated 7 years ago by junaidatari.

A Yii Framework 2 component for using assets in different environments (Local/CDNs)

0 0
2 followers
Viewed: 17 888 times
Version: 2.0
Category: How-tos
Tags: assets, CDN, yii2

`forceCopy` per Asset Bundle

Created 9 years ago by schmunk, updated 9 years ago by schmunk.

During development and depending on your setup you may need to use the options forceCopy or linkAssets of the asset manager to work around possible file-system and permission issues.

1 0
1 follower
Viewed: 12 790 times
Version: 2.0
Category: How-tos

Use minified version of JqueryAsset, BootstrapAsset (and all default assets)

Created 9 years ago by robregonm, updated 9 years ago by robregonm.

By default, Yii 2.0 chooses to use the non-minified version of Jquery and Bootstrap files (CSS and JS). However, there's a simple way to indicate Yii to use the minified version.

7 0
6 followers
Viewed: 33 927 times
Version: 2.0
Category: How-tos

Overcoming removal of client helpers (e.g. ajaxLink) and ClientScript in Yii 2.0

Created 9 years ago by Kartik V, updated 9 years ago by Kartik V.

Alternatively, inline assets (JS/CSS) can be registered at runtime from within the View. For example you can clearly simulate the ajaxLink feature using a inline javascript. Its however recommended if you can merge where possible, client code (JS/CSS) into separate JS/CSS files and loaded through the AssetBundle. Note there is no more need of a CClientScript anymore:

1 2
41 followers
Viewed: 43 295 times
Version: 2.0
Category: FAQs