I am new in zend Framework. And i want to assign database value in dropdownlist dynamically.
Can i have any example url?I have tried to find the solution but didn’t get any answer.
Please Help me…
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It sounds like you want to have a form with a element that get’s it’s ‘s from a database table.
Hopefully you are using Zend_Form, and Zend_DB_Table. You can get the values you need from a Zend_Db_Select and put them into an array.
Then create a Zend_Form with a Zend_Form_Element_Select element and use the addMultiOptions method to add your array as the select options for the element.