> I do not like the idea of "go on and use everything you want in your > templates and good luck with finding the right way".
I agree with that. The framework has to leas you the right way by it's own code. In my opinion giving the developer to much room for bad things leads to same problems php suffered for years. - Dennis On 7 Jul., 00:21, Frank Stelzer <[EMAIL PROTECTED]> wrote: > Hi Fabian, > I see the problem, that symfony does not show the developer the "right > way". When symfony defines all helpers as static methods, then e.g. > all peer classes of the model would be included in this "definition" > and that would break among other things the MVC pattern. > > I do not like the idea of "go on and use everything you want in your > templates and good luck with finding the right way". > > symfony should show the developers a straight forward way, which stuff > they should use in the templates, like "you only should load helpers > with the $sf_helper class, you could also use other classes (like the > peer classes) but then its your fault" > > This assignment would be analog to the big discussion of securing > symfony applications (how to protect *_dev.php front controllers on > prod environments), which was discussed here a few weeks ago. > > - Frank > > Am 06.07.2008 um 18:35 schrieb Fabian Lange: > > > > > Hi Frank, > > well my post implicitly restated the idea to make the symfony > > helpers static > > methods in the classes. And I cant read from your post why this > > should not > > work. > > Of course I could "use every class symfony could find". why should > > this be > > a problem? > > .: Fabian > > > -----Original Message----- > > From: [email protected] [mailto:[email protected] > > ] > > On Behalf Of Frank Stelzer > > Sent: Sonntag, 6. Juli 2008 18:32 > > To: [email protected] > > Subject: [symfony-devs] Re: roadmap for helpers in 1.2 > > > Hi Fabian, > > your scenario only works, when the normal helper functions will be > > moved to static class methods. In your case, you could use every class > > which symfony could find (and that would be many when autoloading is > > not limited). I think this fact would break everything (. > > > But when we would switch to this behaviour: > > > $urlHelper = $sf_helper->get('url') > > > You only would search for sf*Helper or maybe my*Helper classes within > > this sfHelper class and you would contain the helpers area. > > > - Frank --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" 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-devs?hl=en -~----------~----~----~----~------~----~------~--~---
