In the configuration files inside the config folder we can find the next includes:
// config/web.php
$config = [
// ... other configuration settings ...
'params' => require __DIR__ . '/params.php',
];
// config/params.php
return [
'adminEmail' => 'admin@example.com',
'supportEmail' => 'support@example.com',
];
We can access these parameters using the next way:
$email = Yii::$app->params['adminEmail']; // returns 'admin@example.com'
Andrew Dorokhov