Creating Zend_Form elements from row html
Posted
by
P.M
on Stack Overflow
See other posts from Stack Overflow
or by P.M
Published on 2010-07-21T16:37:08Z
Indexed on
2010/12/23
5:54 UTC
Read the original article
Hit count: 418
Hi there, I am having an issue with Zend_Form and your help will be appreciated. in fact I have a class to generate categories as options
$categories = My_Util_Category::toHtmlSelect();//for simplicity I removed other lines
this code generates
<select>
<option > root</option>
<option> root / children</option>
</select>
On another hand, I use Zend_Form form to edit categories. The code looks like:
$form = My_Form_Category( $data, $selectElements = array() );
which outputs a form, text field, a select box for parent categories and a submit button.
How can I get 'select element' from $form, and replace it with row html 'select' generated with $categories
any help, or link will be appreciated. Thanks.
© Stack Overflow or respective owner