Revision #5 was created by GOsha on Nov 20, 2010, 10:21:16 PM.
Added link to API
Content
## How to implement directory independent extensions
Many people want to use downloaded extensions in their own way. As for me most of the extensions require me to correct [`Yii::import()`](http://www.yiiframework.com/doc/api/1.1/YiiBase/#import-detail) instructions inside their source code. All these extensions are directory dependent. To avoid the situation described above, I suggest to implement pseudo-anonymous aliases:
```php
// take the current extension path
$dir = dirname(__FILE__);
// generate alias name