The $form->populate() method accepts an array of key->value pairs that it will populate the form with before passing on to your view.
On Wed, Apr 29, 2009 at 4:05 PM, iceangel89 <comet2...@gmail.com> wrote: > > i think this is common. i want to create a form that optionally maps to a > table row. eg. i have a departments table thus a department Zend_Db_Table > > i also created a form class that extends from Zend_Form to add/edit rows > > so for add its simple all fields empty. for edit i want to populate the > fields with a table row. how can i do this? > -- > View this message in context: > http://www.nabble.com/Zend_Forms-with-Zend_Db_Tables-tp23292523p23292523.html > Sent from the Zend Framework mailing list archive at Nabble.com. > >