The default class name of the zend framework is “zend_form” and the elements of that form is created with dl,dt,dd tags.
How can i change this format and the class name of that form?
And also how can i change the format from dl,dd,dd to
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.
The HTML rendered by the form is controlled via decorators. This is a good place to start learning about them – http://framework.zend.com/manual/en/learning.form.decorators.html
If you provide an example of the markup you’d like to generate, I can show you a decorator scheme that should work.
As for the class name, assuming you’re talking about the HTML form element’s
classattribute, simply set it using theZend_Form::setAttrib()method, eg