Model means data, data is independent from the context, a context is
different for each application.

On Fri, Jun 26, 2009 at 5:26 PM, Tom Haskins-Vaughan <
t...@templestreetmedia.com> wrote:

>
> 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 <bschus...@gmail.com
> > <mailto:bschus...@gmail.com>> 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
> >
> > >
>
> >
>


-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to