> no.
>
> Change "in my controller" to the following
>
> in my controller
> ==================
> $data = array('location' => 'location1');
> $form    = $this->_getTestForm();
> $form->populate($data);
> ...
> ....
> ==================
>
> all i did was change the array
>
> from
>
> $data = array('location1' => 'location1');
>
> to
>
>
> $data = array('location' => 'location1');
>
>
> does it work now?
>

Is this what you mean? the name I gave to select element is what it
should be in the $data array's index?

===============================
$data = array('location' => 'location1');
                       \---------------------------------------------\
                                                                      \
$location = New Zend_Form_Element_Select('location');
======================================

I did as you said and still got the same error message.

Thank you both for being patient with me. As you can see I am
completely newbie in this subject.


-- 
=======================
Registered Linux User #460714
Currently Using Fedora 8, 10
=======================

Reply via email to