symfony cheat sheet
In an action: set a template variable using disabled output escaping
$this->setVar('foo', '<b>important</b>', true);
Get the current environment
sfConfig::get('sf_environment')
$this->setVar('foo', '<b>important</b>', true);
sfConfig::get('sf_environment')