Basically, I have this:
----------------------------------------------------
// record the date when bottle 1 was opened.
$bottle1Opened = new Zend_Form_Element_Text('bottle_1_opened',
array('label' => 'Bottle 1 Opened', 'size' => '10',
'validators' => array('date')));
$this->addElement($bottle1Opened);
// record the date when bottle 1 should expire.
$bottle1Expired = new Zend_Form_Element_Text('bottle_1_expired',
array('label' => 'Bottle 1 Expired', 'size' => '10',
'validators' => array('date')));
$this->addElement($bottle1Expired);
// record the date when bottle 2 was opened.
$bottle2Opened = new Zend_Form_Element_Text('bottle_2_opened',
array('label' => 'Bottle 2 Opened', 'size' => '10',
'validators' => array('date')));
$this->addElement($bottle2Opened);
// record the date when bottle 2 should expire.
$bottle2Expired = new Zend_Form_Element_Text('bottle_2_expired',
array('label' => 'Bottle 2 Expired', 'size' => '10',
'validators' => array('date')));
$this->addElement($bottle2Expired);
----------------------------------------------------
How can I turn that, into displaying this:
----------------------------------------------------
<form>
Bottle 1 Opened
Bottle 1 Expired
Bottle 2 Opened
Bottle 2 Expired
</form>
----------------------------------------------------
I'm struggling with having my forms display in a table-like manner. Does
anyone have a code sample to better illustrate this? I was not able to find
something that would be so useful.
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/How-to-put-a-form-in-a-table-tp4659137.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]