I have created a new decorator and have added it to my form using addElementPrefixPath. I intend to use this decorator in other forms but do not want to add it every time. How do I add this decorator via the bootstrap?
Share
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.
I would personally extend Zend_Form and use that form instead. As below:
That file would go in ./library/My/Form.php. And then in all of my forms they would be:
If you haven’t used auto loader namespaces before you will need to add this to your application.ini (assuming you start your extended form with “My_”
I hope that helps. Let me know if I misunderstood your question or I didn’t make myself clear 🙂