Render each choice as a row in a table in a Symfony choice widget.

Posted by Juan Besa on Stack Overflow See other posts from Stack Overflow or by Juan Besa
Published on 2010-06-12T00:03:29Z Indexed on 2010/06/12 0:13 UTC
Read the original article Hit count: 483

Filed under:
|

Hi,

I have a sfWidgetFormChoice which renders checkboxes in Symfony 1.4. The problem I have is that I want to rend each choice as a row in a table. So my html would ideally be something like this:

<tr><td>Choice 1</td></tr>
<tr><td>Choice 1</td></tr>
<tr><td>Choice 1</td></tr>
            .
            .
            .

So that it would render as a table instead of a list.

Thanks!

© Stack Overflow or respective owner

Related posts about forms

Related posts about symfony-1.4