Are you new? Read the FAQ and catch up on!
216 views

Get the working symfony environment

It is very easy to get the active symfony environment:

PHP
  1. // Gets the symfony environment and stores it in $sfEnvironment
  2. $sfEnvironment = sfConfig::get(’sf_environment’);
  3.  

­

Tags: PHP symfony sfconfig

Embed: