anonymous
anonymous

Reputation: 11

Zend Framework [Forms] - How to make an array of form elements (textbox)?

How can I achieve the ff. in zend using zend form:

<input type="text" name="list[]" />
<input type="text" name="list[]" />

Upvotes: 1

Views: 1940

Answers (1)

homelessDevOps
homelessDevOps

Reputation: 20726

you can do this with:

Zend_Form::setElementsBelongTo($array):

For more information visit:

http://framework.zend.com/manual/en/zend.form.advanced.html

Upvotes: 3

Related Questions