or something like this :
$env = sfConfig::get('sf_environment');

Hope that helps

Peter

Piers Warmers a écrit :
> Something like this will do the trick:
>
> $in_dev_mode = (SF_ENVIRONMENT === 'dev') ? true : false';
>
>
>
> On 14/05/2008, at 11:00 PM, Sumedh wrote:
>
>   
>> Hi guys...
>>
>> How can I fetch the value of current environment through code?
>>
>> Say I need to do something only if it is a Dev environment...
>>
>> Honestly, I didn't see this in the documentation...is it there? :|
>>
>> Thanks in advance...
>>     
>
>
> >
>
>
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to