Skip to content

Load order ​

Application config is loaded automatically in this order:

Shared config → module config

app/config.php → app/<current-module>/config.php (for example app/home/config.php).

What this means ​

Put global defaults in shared config; put module-specific values in each module. Later files can override earlier keys when names match.

Recommendations ​

If you only have a few settings, app/config.php is enough. When modules diverge clearly, split settings into each module’s config.

PhpTide documentation