Alias in application configuration

In Prado, we could declare aliases in the application configuration, like so:



<paths>


    <alias id="SomeAlias" path="../../Path/To/Stuff" />


    <using namespace="SomeAlias.SomeThing.*" />


</paths>


Is it possible to do this in Yii? I have looked at how the imports are handled (CApplication->setImport) but can't find any corresponding method for handling aliases.

You can define alias before the application instance is created. For example, you can call Yii::setPathOfAlias at the beginning of your config file or before you create application in index.php.

Cool, thanks Qiang.

Would it be beneficial to include a commented example of this in the application configuration file generated by yiic?