Well, I know that many feel the helpers should in fact be classes with, for
example, a whole bunch of static methods in which case they could just be
autoloaded.

But, until a solution is found how about adding a new shortcut to
sfComponent called getHelper() to reduce verbosity.

Jamie Learmonth

http://www.boxlightmedia.com

On Thu, Sep 25, 2008 at 11:25 PM, Francois Zaninotto <
[EMAIL PROTECTED]> wrote:

>
> Devs,
>
> After reading changeset 11783, and seing sfLoader deprecated, I'm
> worried about the lack of easy way to deal with partials and
> components in the action.
>
> The need for partials in the actions is regular (in Ajax actions,
> email actions, etc). As of now, this was done by using the partial
> helpers in the following way:
>
>    sfLoader::loadHelpers('Partial');
>    use_partial('foo/bar');
>
> But in sf 1.2, devs will have to write:
>
>    $this->getContext()->getConfiguration()->loadHelpers('Partial');
>    use_partial('foo/bar');
>
> It's a lot more verbose, and probably a good occasion to look for a
> new way to handle partials and components outside of templates. I'm
> not a big fan of global functions, so an alternative to helpers would
> probably do the job.
>
> Thoughts?
>
> François
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to