Revision #2 was created by qiang on May 8, 2009, 3:09:14 PM.
Remove redundant line.
Content
Manage application configurations
> Info: This tutorial references the idea presented in [Jonah's excellent blog article](http://php-thoughts.cubedwater.com/2008/running-your-yii-app-and-configuring-it/).
Application configuration determines how an Yii application should behave, because it is the only parameter passed in the entry script. An application, on the other hand, needs to behave differently under different circumstances. For example, an application may need different configurations when running in production mode, development mode and testing mode; In a team development environment, each developer may have his own database connection and thus require a customized application configuration. In this tutorial, we describe how to manage application configurations to fulfill all the above needs.
Before we start, we should note that an application configuration is stored as a PHP script. As a result, we can place *any valid PHP code* in it, which may make the configuration more 'intelligent' than simply returning an array of name-value pairs.