Where to store global application configuration values?

Hi everyone,

I'm working on migrating an existing application to Yii.

I have a settings table which contains key, value pairs for various applications settings.

Does Yii have an object to store application configuration data similar to what CakePHP has?

In Cake I can do Configure::write('key','value') and Configure::read('value')

I could easily implement something like that myself but I'd like to make sure that it doesn't exist before I do that

thanks for your help


In Yii, you use 'params'. You can configure it in app config as:


Then you can use Yii::app()->params['paramName']

very cool

thanks for your fast response.

Is there any pre built component which would persist the params array in the database as key=>value pairs?

If there isn't already maybe I can write something like that and share it when I'm done with it

actually I just found a a really nice extension that handles this.

In case anyone had the same problem: