I have two configuration files.
config.php (flammable kernel configuration)
and email.php (automatically loaded by the email class when it is used)
What I want to do is this.
In config.php there is
$config['env'] = 'hailwood_dev';
then in email.php there is
if($config['env'] == 'hailwood_dev'){
} elseif($config['env'] == 'production'){
}
But this has no effect (im guessing since $ config ['env'] does not have these values).
How do I access this value?
source
share