Although every folder in the main Yii project could be considered a Yii standalone application, with its own controllers, models, views, and so on, it is conventionally accepted that all shared data are located in the
So every shared model (such as
Customer) that could be used in other Yii applications, should be inserted in
common/models, under the
From my point of view, when an application needs to use an ActiveRecord from
common/models, I rather prefer to point to an extended version in its namespace, so as to have a chance again to add custom methods or properties to model for that application.
For example, consider we have the ...