Monday, 26 August 2013

How to get working environment in Symfony 1.4

How to get working environment in Symfony 1.4

I have some features that I only want shown when the website is run in dev
mode (or in development environment). How can I programmatically determine
what environment is currently being used?
E.g.
// $inDevEnvironment = ?
if ($inDevEnvironment) {
// DEV feature here
}

No comments:

Post a Comment