I've produce a form class for editing removing and add customers to some database. If I wish to edit a person how do i simply give you the information from the user towards the form.

I personally use a Zend_Db_Table to obtain the data in the database.

This is actually the userForm class:

class UsersForm extends Zend_Form
    public function init ()
    	$username = new Zend_Form_Element_Text('username',array(
    		'validatrors' => array(
    		'filters'	=> array(
    		'required'	=> true,
    		'label'		=> 'Gebruikersnaam:'

    	$password = new Zend_Form_Element_Password('password', array(
    		'validators'=> array(
    			array('StringLength', array(6,20))
    		'filters'	=> array('StringTrim'),
    		'required'	=> true,
    		'label'		=> 'Wachtwoord:'

    	$actif = new Zend_Form_Element_Checkbox('actif', array(
    		'label'		=> 'actif'));


    		array('HtmlTag', array('tag' => 'dl', 'class' => 'zend_form')),
    		array('Description',array('placement' => 'prepand')),


Ivo Trompert

This is accomplished with:


where $information is an assortment together with your table-row-data in which the area names need to match that relating to the shape. Zend is going to do the relaxation.

among the 'fetchXXX' or 'find' techniques in your extended Db_Table will return a Rowset, calling current() on that provides you with a Row, with a toArray method that provides you with the format tharkun's fact is requesting.