Yii and config file different from dev status ?

Hi there !

I recently discovered Zend Framework (nothing compared to Yii really, but I am obliged to use it at work) and come across interesting ideas.

In ZendF they are using a stage in the application processus (developement, production…) and the config file can be different from those stages.

[production]

sql.host = blabla1

[developement]

sql.host = test

Which is very practical in reality. Actually I am setting up an apache env variable to check witch stage is defined and load a specific config file from that.

What do you think?

Cheers,

Another Yii fan

I use YII_DEBUG ? development value : production value in many cases, because I don’t want to edit config files before deploying apps.

You may check this out: http://www.yiiframework.com/doc/cookbook/32/