configuring extenstion dir

It would be nice to add posibility to configure path to extensions directory without redefining __create() method of application.

Problem is that in this case:




$app=Yii::createWebApplication($config);

Yii::setPathOfAlias('ext',$pathToExt);

$app->run();



Yii autoload can’t find classes.

Helps only using Yii::import(‘ext.path.ClassName’) necessary with ClassName, but it isn’t good.

Using other path alias for dir with extensions isn’t good because some extensions use path aliases with ‘ext.’

Setting application.extensionPath via config instead of using Yii::setPathOfAlias(‘ext’,$pathToExt) helps, all works fine now.

:mellow: