Wiki articles tagged with "assets"

Showing 1-5 of 5 items.

AssetManager: clearing browser's cache on site update

Created 7 years ago by dhampik, updated 6 years ago by 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
27 followers
Viewed: 48 361 times
Version: 1.1
Category: How-tos

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

Created 8 years ago by dckurushin, updated 6 years ago by 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: 29 478 times
Version: 1.1
Category: How-tos

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 154 times
Version: 1.1
Category: Tips

Prevent asset publishing for CListView

Created 8 years ago by Mike, updated 8 years ago by 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: 11 467 times
Version: 1.1
Category: How-tos

Understanding "Assets"

Created 8 years ago by Steve Friedl, updated 7 years ago by 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.

45 0
40 followers
Viewed: 184 063 times
Version: 1.1
Category: Tutorials