Reputation: 13
I have a Zend form where there are lot of textboxes. I need to set the value of these textboxes from the respective controller and present the form while performing an action. How can I acheive the same?
Upvotes: 1
Views: 3332
Reputation: 7504
Try to use like this one:
$form = new Zend_From();
$textfield = new Zend_Form_Element_Text('textfield');
$textfield->setValue('your value');
$form->addElement($textfield);
<?= $form ?>
Upvotes: 1