On Saturday 15 August 2009 07:31:37 UpNow wrote: >now is the edit form, so i should give the form elements their values read >from db. >which method use? >$form->??? > >Help me! Thanks.:-D
$form->getElement('elementName') ->setValue('foo'); or $form->populate($data); Also, http://framework.zend.com/manual/en/zend.form.forms.html#zend.form.forms.elements.values and, http://framework.zend.com/apidoc/core/