In the general.php config file, I can target settings for multi-environments like so:
return array(
'*' => array(
'devMode' => false
),
'.loc' => array(
'devMode' => true
)
);
Is it possible to do something similar in the routes.php file too?
return array(
'*' => array(
'test' => 'index'
),
'.loc' => array(
'test' => '_test/index'
)
);
I don't want to differentiate the locales, but the environment instead. I know it's possible to query how content gets included within the templates themselves. I just wondered if this is possible instead... I don't actually have a use-case example.
Maybe a time will arise where I want to allow certain content to be accessible for 'staging.' domains only.
Thanks,
Mark