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