Understand the Yii3 application directory structure
masterThe Yii3 web application template follows this directory structure:
assets/: Asset bundle source files.config/: Configuration files.common/: Common configuration and DI definitions.console/: Console-specific configuration.environments/: Environment-specific configuration (dev/test/prod).web/: Web-specific configuration.
docker/: Docker-specific files.public/: Files publicly accessible from the Internet.assets/: Published/compiled assets.index.php: Entry script.
runtime/: Files generated during runtime.src/: Application source code.Console/: Console commands.Shared/: Code shared between web and console applications.Web/: Web-specific code (actions, handlers, layout).Shared/: Shared web components.Layout/: Layout components and templates.
bootstrap.php: Application bootstrap (autoloading, environment setup).Environment.php: Environment configuration class.
tests/: Codeception tests (Console, Functional, Unit, Web).vendor/: Installed Composer packages.Makefile: Config for make commands.yii: Console application entry point.