app
config/ contains backend configurations
controllers/ contains Web controller classes
models/ contains app-specific model classes
runtime/ contains files generated during runtime
themes/ contains themes for the Web application
web/ contains the entry script and Web resources
common
components/ contains application components
config/ contains shared configurations
mail/ contains view files for e-mails
messages/ contains translate files
models/ contains model classes
modules/ contains application modules
console
config/ contains console configurations
controllers/ contains console controllers (commands)
fixtures/ contains model fixtures
migrations/ contains database migrations
models/ contains console-specific model classes
runtime/ contains files generated during runtime
environments/ contains environment-based overrides
vendor/ contains dependent 3rd-party packages
- Инициализация окружения
php init --env=Development --overwrite=All
- Миграции
php yii migrate/up --interactive=0
- Фикстуры
php yii fixture/load "*" --interactive=0
- Роли и разрешения
php yii rbac/init
- Пользователь
php yii user/create [email protected] root root
- Подтвердить пользователя
php yii user/confirm root
- Права пользователя
php yii rbac/assign root root