i belive twig templates have a "_view" variable for accessing helpers
so you should be able to do { _view.twitter_anywhere.setup() } (cant
remember if the parantheses are needed)

On Sep 21, 10:49 pm, Jordi Boggiano <[email protected]> wrote:
> On 21.09.2010 22:42, Jordi Boggiano wrote:
>
> > I submitted a pull request [3] but I wanted to post it to the ml to be
> > sure everyone gets a chance to comment if they think it's a good or bad
> > approach.
>
> I just realized that I forgot to mention something, another
> (complementary?) approach, if it's not possible to do so yet, would be
> to allow twig templates to use any helper with something like:
>
> {% view.router.generate('foo', ['arg': 'val']) %}
>
> No idea how easy that would be, but it would be nice for some helpers
> that have many methods, rather than forcing them to register 20
> different tokens.
>
> Cheers
>
> --
> Jordi Boggiano
> @seldaek ::http://seld.be/

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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