Wiki articles tagged with "assets"

Showing 1-11 of 11 items.

Boost composer-asset-plugin update speed

Created 9 years ago by schmunk schmunk, updated 9 years ago by samdark 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: 30 440 times
Version: 2.0
Category: Tips

Yii2cdn Component

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

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

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

`forceCopy` per Asset Bundle

Created 10 years ago by schmunk schmunk, updated 10 years ago by schmunk 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: 14 740 times
Version: 2.0
Category: How-tos

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

Created 10 years ago by robregonm robregonm, updated 10 years ago by robregonm 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.

9 0
6 followers
Viewed: 36 719 times
Version: 2.0
Category: How-tos

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

Created 11 years ago by Kartik V Kartik V, updated 11 years ago by Kartik V 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: 46 076 times
Version: 2.0
Category: FAQs
4 0
8 followers
Viewed: 12 043 times
Version: Unknown (update)
Category: Tutorials
Tags: assets, heroku

AssetManager: clearing browser's cache on site update

Created 13 years ago by dhampik dhampik, updated 12 years ago by dhampik dhampik.

If you like the things to be short and clear, then you can skip right to a short summary of instructions at the end of this article.

15 0
25 followers
Viewed: 62 213 times
Version: 1.1
Category: How-tos

Yii registry, how to use it, does it exist at all?

Created 13 years ago by dckurushin dckurushin, updated 12 years ago by resurtm resurtm.

If you coming to Yii with experience with Zend Framework for example, most likely you get used to

Zend_Registry::get('paramName');
Zend_Registry::set('paramName');
6 0
9 followers
Viewed: 38 604 times
Version: 1.1
Category: How-tos

Send asset folder path to a javascript of a widget

Created 13 years ago by sensorario sensorario, updated 13 years ago by sensorario 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: 36 032 times
Version: 1.1
Category: Tips

Prevent asset publishing for CListView

Created 14 years ago by Mike Mike, updated 14 years ago by Mike Mike.

If you don't want to use any of the AJAX features of CListView and thus want to prevent that it publishes any of its asset files, you can extend it and create a sub class like this:

2 0
6 followers
Viewed: 14 893 times
Version: 1.1
Category: How-tos

Understanding "Assets"

Created 14 years ago by Steve Friedl Steve Friedl, updated 13 years ago by GOsha GOsha.

Many newcomers to Yii ask about the assets/ directory found under the webroot, and this article means to explain why it's there and how to work with it.

46 0
40 followers
Viewed: 214 001 times
Version: 1.1
Category: Tutorials