php - How to use multiple configuration files using Yii -


i want use different configuration file development , production server. want define different database configuration each server , different logging procedure.

so when run on server change index.php file.

development:

// developement $config=dirname(__file__).'/protected/config/development.php'; // production // $config=dirname(__file__).'/protected/config/production.php'; 

production:

// developement // $config=dirname(__file__).'/protected/config/development.php'; // production $config=dirname(__file__).'/protected/config/production.php'; 

maybe article give information you.

yii framework separate configurations different environments


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -