I will certainly take your advice, but is there an explanation in 
layman's terms as to why it's bad?

Thomas Rabaix wrote:
> As Bernhard said, this is not a good practice to use sfContext inside 
> the model. Now, if you don't want to break your code use 
> sfContext::hasInstance instead of $_SERVER.
> 
> On Fri, Jun 26, 2009 at 3:43 PM, Bernhard Schussek <[email protected] 
> <mailto:[email protected]>> wrote:
> 
> 
>     It's not a good practice to use sfContext::getInstance(). It's
>     actually one of the worst practices one can have when developing with
>     symfony.
> 
>     One cannot emphasize that enough.
> 
> 
>     Bernhard
> 
> 
> 
> 
> 
> -- 
> Thomas Rabaix
> http://rabaix.net
> 
> > 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
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