4

I'm using Focus Lab's brilliant Master Config https://github.com/focuslabllc/ee-master-config but wondered if it is possible to use the ENV constant in a template?

Something like this?

{if ENV == 'staging'}Show this.{/if}

Thank you.

1 Answer 1

4

You can use {global:env} and {global:env_full} by default. To add in extra variables see the $master_global array in config.master.php.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.