Jordi (and Stof),

What you propose is a good solution, it would be:

render_row($form, {label: { label: 'foo', attr: {...} }, widget:
{ attr: {...} }})

so that when rendering a row you are able to override both the label
and the widget option independently.
I'll work on that.

I have pushed a 'form/theming' branch to my repo if you want a preview
of the rendering refactoring.

Cheers,
Victor

On Jun 17, 12:25 pm, Christophe COEVOET <s...@notk.org> wrote:
> Le 17/06/2011 11:33, Jordi Boggiano a crit :> On 17.06.2011 11:30, victor 
> berchet wrote:
> >> What else than the label would you like to customize ? If you
> >> customize any variable that is use by several sections (i.e. 'attr'
> >> then it will be applied to all sections), don't you think it is bad ?
> > Is it not possible to rename this into attr/label_attr/error_attr or
> > something?
>
> > Or just instead of label being the label text, let it be all the
> > variables that will be passed to the label? {'label': {'text': 'foo',
> > 'attr': {'class':'lala'}}}. It's a bit unreadable but that's already the
> > case I think.
>
> > Cheers
>
> this is fine, except that I would use { 'label : 'foo'} instead of
> {'text': 'foo'} so using it is just a matter of passing the array to the
> form_label() method without having to change any key.
>
> --
> Christophe | Stof

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

Reply via email to