请指导,
我曾经使用基本模板创建了一个Yii2应用程序。现在,我正在转向高级模板。
因为我面临着这样的问题。
比方说,我们有总部和分支机构。我的问题是应用程序的结构。
- backend
- frontend
我有2个问题,如果我的结构如下:
- backend-master (abstract/interfaces class is came from this)
- backend-headquarters
- backend-branch-offices-1
- backend-branch-offices-2
- frontend
请指教。
后端/模块/ headquaters / module / config / main.php(我假设)
'components' => [
... other components
'view' => [
'theme' => [
'pathMap' => [
// you may specify any directory as your view directory from here
'@backend/views' => '@backend/views',
'@frontend/adminlte/views' => '@frontend/themes/adminlte/views',
],
],
],
... other components