A custom Zend form element that combines two existing elements

I noticed that I use Element_Checkboxand Element_Texttogether a lot in my project. Is there a way to combine them into a single element so that I can just do something like:

new Zend_Form_Element_Combo

I tried, as in the documentation, but I feel that they complicate it. I just want to combine the two elements together.

+3
source share
1 answer

Depending on what exactly you are trying to execute, you will either just make a subform or a composite element. There is an excellent Zend Cast on the subject of composite elements.

+2
source

All Articles