Let\'s say I have a form that collects a first name and a last name:
$first_name = new Zend_Form_Element_Text(\'first_name\');
$first_name->setLabel(\"First N
The form->populate() method takes an array where the keys are the names of the form fields.
The Zend_Db_Table_Row object implements a toArray() method which can be used here (as do many other objects). So you can do stuff like:
$form = new MyForm;
$table = new MyTable;
$rowset = $table->find($id);
$row = $rowset->current();
$form->populate($row->toArray());