Dominus77 / yii2-advanced-start

Yii2 Start Project Advanced Template
https://dominus77.github.io/yii2-advanced-start/
MIT License
23 stars 12 forks source link

Which folder should put the new system? #2

Closed polinwei closed 6 years ago

polinwei commented 6 years ago

If I want to create a blog system base on your yii2-advanced-start, which models folder should put the new system? common\models or modules\blog\models ?

Dominus77 commented 6 years ago

If you follow the modular system, then modules / blog. As an example https://github.com/Dominus77/yii2-advanced-start/tree/master/modules/main Modules in common / config are connected https://github.com/Dominus77/yii2-advanced-start/blob/288682261f87af0a72a6abb2693d55d0076c8fe5/common/config/main.php#L7

polinwei commented 6 years ago

Thanks!!