Hi Tom,

2009/2/5 Tom Boutell <[email protected]>:
> I believe ->render() and ->renderRow() would be much more useful if
> they accepted attributes intended for the formatting element that
> contains the row, not just the attribute itself.

I absolutely agree. If I use the method renderRow(), I am abstracting
on a row-based level and I want to influence the attributes for the
row. This is why I think passing the attributes given to renderRow()
to the <tr> tag only would be fine.

If I want to tune the attributes for the single widget, I can still
render it individually.

Example:

$form['email']->renderRow(array('class' => 'foobar'));
<tr class="foobar">...</tr>
 vs.
$form['email']->render(array('class' => 'foobar'));
<input class="foobar" ... />


Bernhard

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