Wiki articles tagged with "assets"

Showing 1-5 of 5 items.

AssetManager: clearing browser's cache on site update

Created 12 years ago by dhampik, updated 12 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
25 followers
Viewed: 61 176 times
Version: 1.1
Category: How-tos

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

Created 13 years ago by dckurushin, updated 11 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: 37 048 times
Version: 1.1
Category: How-tos

Send asset folder path to a javascript of a widget

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

Prevent asset publishing for CListView

Created 13 years ago by Mike, updated 13 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: 14 459 times
Version: 1.1
Category: How-tos

Understanding "Assets"

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

46 0
40 followers
Viewed: 210 650 times
Version: 1.1
Category: Tutorials