Difference between #1 and #2 of
Manage application configuration in different modes

Revision #2 has been created by qiang on May 8, 2009, 3:09:14 PM with the memo:

Remove redundant line.
« previous (#1) next (#3) »

Changes

Title unchanged

Manage application configuration in different modes

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

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.
[...]
15 0
15 followers
Viewed: 67 650 times
Version: 1.1
Category: Tutorials
Written by: qiang
Last updated by: 张 迪
Created on: May 8, 2009
Last updated: 12 years ago
Update Article

Revisions

View all history