Wiki articles in category Tips tagged with "assets"

Showing 1-2 of 2 items.

Send asset folder path to a javascript of a widget

Created 8 years ago by sensorario, updated 8 years ago by sensorario.

When you develop a widget, you could need one image that is in the assets folder, you can use it simply within a css. You can load a css or javascript script doing this:

Yii::app()->getClientScript()->registerCssFile($filename);
4 0
9 followers
Viewed: 28 360 times
Version: 1.1
Category: Tips

Boost composer-asset-plugin update speed

Created 3 years ago by schmunk, updated 3 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: 20 081 times
Version: 2.0
Category: Tips