yes. If it's still throwing errors post the error message. Also what version
of ZF are you using?
Deepak Shrestha wrote:
>
>> 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
> =======================
>
>
--
View this message in context:
http://www.nabble.com/Populating-Zend_Form_Element_Select-from-database-example-tp21761696p21764939.html
Sent from the Zend Framework mailing list archive at Nabble.com.