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.
http://www.yiiframework.com/wiki/155/the-directory-structure-of-the-yii-project-site/#hh5
I want my controller in frontend to access these models from common folder.
Thanks
zaccaria
(Matteo Falsitta)
2
If you want simple to access just import them, in config/main add:
'import'=>array(
'common.models.*',
),
If you want to set ‘common’ as an alias, use:
'aliases'=>array(
'common'=>dirname(__FILE__).path_to_common.'common',
),
Is there any performance hit in the import statement. And how do i handle model inheritance i.e fronted model inheriting from common model