How Do I Achieve A Path Alias In Yii

As per this link i have almost managed to achieve the structure. But the path alias is confusing me. Could somebody explain me how can i achieve this.

I want my controller in frontend to access these models from common folder.


If you want simple to access just import them, in config/main add:




If you want to set ‘common’ as an alias, use:




Is there any performance hit in the import statement. And how do i handle model inheritance i.e fronted model inheriting from common model