title: Yii framework: importing classes while in the config/main.php file
body: <p>Trying to import a class while in <code>config/main.php</code> (<em>before</em> the Yii configuration is returned):</p>
  
  <pre><code> //class LanguageSettings is placed directly in protected/components/LanguageSettings.php
   Yii::import('application.components.*');
   LanguageSettings::currentLanguage();
  </code></pre>
  
  <p>causes that fatal error: </p>
  
  <pre><code> Fatal error: Uncaught exception 'CException' with message 
   'Alias "application.components.*" is invalid. Make sure it points to an existing 
   directory or file.' in C:\xampp\htdocs\yii\framework\YiiBase.php:
  </code></pre>
  
  <p>Why ? Can Yii resolve the alias correctly before importing the configuration array ?</p>