title: How to use multiple configuration files using Yii
body: <p>I want to use different configuration file for my development and production server. I want to define different database configuration for each server and different logging procedure.</p>
  
  <p>So when I run on my server I just change the <code>index.php</code> file.</p>
  
  <p>Development:</p>
  
  <pre><code>// developement
  $config=dirname(__FILE__).'/protected/config/development.php';
  // production
  // $config=dirname(__FILE__).'/protected/config/production.php';
  </code></pre>
  
  <p>Production:</p>
  
  <pre><code>// developement
  // $config=dirname(__FILE__).'/protected/config/development.php';
  // production
  $config=dirname(__FILE__).'/protected/config/production.php';
  </code></pre>