getting symfony environment value (dev, staging, prod, etc)
In templates:
<?php $currentConfiguration = sfContext::getInstance()->getConfiguration(); ?>
<?php $env = $currentConfiguration->getEnvironment(); ?>
In templates:
<?php $currentConfiguration = sfContext::getInstance()->getConfiguration(); ?>
<?php $env = $currentConfiguration->getEnvironment(); ?>