What's the simplest way to create a Zend_Form tabular display with each row having a radio button?

Posted by RenderIn on Stack Overflow See other posts from Stack Overflow or by RenderIn
Published on 2010-03-12T14:32:00Z Indexed on 2010/03/12 15:07 UTC
Read the original article Hit count: 284

I've seen simple examples of rendering a Zend_Form using decorators, but I'm not sure they are able to handle the issue I'm facing very well.

I query the database and get an array of user objects. I want to display these users as a form, with a radio button next to each of them and a submit button at the bottom of the page.

Here's roughly what the form will look like:

   [user id]  [email]         [full name]
( ) 1         [email protected]   Test user 1
(*) 2         [email protected]  Test user 2
[SUBMIT]

Is this something achievable in a reasonably straightforward way or do I need to use the ViewScript partial?

© Stack Overflow or respective owner

Related posts about php

Related posts about zend-framework