mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 14:29:30 +08:00
Added advanced application configs schema to docs, fixed the fact that there's now common/config/main.php
This commit is contained in:
@@ -99,6 +99,8 @@ Typically environment contains application bootstrap files such as `index.php` a
|
||||
In order to avoid duplication configurations are overriding each other. For example, frontend reads configuration in the
|
||||
following order:
|
||||
|
||||
- `common/config/main.php`
|
||||
- `common/config/main-local.php`
|
||||
- `frontend/config/main.php`
|
||||
- `frontend/config/main-local.php`
|
||||
|
||||
@@ -111,8 +113,9 @@ Parameters are read in the following order:
|
||||
|
||||
The later config file overrides the former.
|
||||
|
||||
Another difference is that most application component configurations are moved to params. Since params are read from
|
||||
`common` as well it allows you to specify database connection in one file and it will be then used for all applications.
|
||||
Here's the full scheme:
|
||||
|
||||

|
||||
|
||||
Configuring Composer
|
||||
--------------------
|
||||
|
||||
BIN
docs/guide/images/advanced-app-configs.png
Normal file
BIN
docs/guide/images/advanced-app-configs.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
Reference in New Issue
Block a user