While having separate frontend and backend is common, sometimes it's not enough. For example, you may need additional application for, say, a blog. In order to get it:
- Copy
frontend
toblog
,environments/dev/frontend
toenvironments/dev/blog
andenvironments/prod/frontend
toenvironments/prod/blog
. - Adjust namespaces and paths to start with
blog
instead offrontend
. - In
common\config\bootstrap.php
addYii::setAlias('blog', dirname(dirname(__DIR__)) . '/blog');
.