Wiki articles tagged with "assets"

Showing 1-5 of 5 items.
Created 6 years ago by dhampik, updated 5 years ago by dhampik.

AssetManager: clearing browser's cache on site update

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: 44 714 times
Version: 1.1
Category: How-tos
Created 6 years ago by dckurushin, updated 5 years ago by resurtm.

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

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: 27 076 times
Version: 1.1
Category: How-tos
Created 6 years ago by sensorario, updated 6 years ago by sensorario.

Send asset folder path to a javascript of a widget

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: 25 778 times
Version: 1.1
Category: Tips
Created 7 years ago by Mike, updated 7 years ago by Mike.

Prevent asset publishing for CListView

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: 10 672 times
Version: 1.1
Category: How-tos
Created 7 years ago by Steve Friedl, updated 6 years ago by GOsha.

Understanding "Assets"

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: 175 049 times
Version: 1.1
Category: Tutorials