Where To Store Public / Global Property

I had an old code which uses ShopComponent. In that code Shop Category could be retrieve as Components publi property: Yii::app()->shop->category.

However, now code is refactored and there is no more shop component. All code is under public & view folders, wihtout Shop Component (do not ask why, it is simply so :) ).

So as I am quite new to Yii, I wonder what is the way to save some public / global parameter somewhere? It is not just a string varaible, it is an object - model (Category).

Maybe you could use Yii::app()->params for global parameters?

This way you can configure those global parameters in protected/config/main.php:


	'params'=>array(

		'global1'=>'value1',

	),

Ok, thanx.