Config files return arrays (values and lambdas):
<?php // config/config.php
return [
"debug" => true,
];
They are merged in this order (later wins):
- defaults (
Config::DEFAULTS) site/config/config.php,site/config/config.{hostname}.phpconfig/config.php,config/config.{hostname}.php
config.{hostname}.php is only loaded on that host, e.g. config.example.com.php. Use it for environment specific settings.
App::instance()->config->get("debug");
All options: Config reference.