Using Zend Form decorators to make table-less form?

First of all, Zend_Form uses decorators to write the form. You can make changes to the existing default decorators but also write and add your own decorators. Check the Zend Reference Guide for examples About the position of labels you can tell the existing decorator to APPEND or PREPEND to the form element Following are couple examples for how you can manipulate existing decorators $element->removeDecorator('DtDdWrapper'); $descriptionDecorator = new Zend_Form_Decorator_Description(array('tag'=>'p','class' => 'description_submit')); $descriptionDecorator->setOption('placement','PREPEND'); $element->addDecorator($descriptionDecorator) There is also an existing Zend_Form_Decorator_Label class but I don't have an example ready for that.

First of all, Zend_Form uses decorators to write the form. You can make changes to the existing default decorators but also write and add your own decorators. Check the Zend Reference Guide for examples.

About the position of labels you can tell the existing decorator to APPEND or PREPEND to the form element. Following are couple examples for how you can manipulate existing decorators. $element->removeDecorator('DtDdWrapper'); $descriptionDecorator = new Zend_Form_Decorator_Description(array('tag'=>'p','class' => 'description_submit')); $descriptionDecorator->setOption('placement','PREPEND'); $element->addDecorator($descriptionDecorator); There is also an existing Zend_Form_Decorator_Label class but I don't have an example ready for that.

Thank you. It seems like this decorator system is extremely complicated considering HTML is so simple to work with. I guess I will have to go through what seems to be a steep learning curve.

– Tom Jul 23 at 18:29 2 @Tom If you create just one or two forms that's certainly true. If you create dozens of forms with lots of elements and even multi-page forms then this will save you a tremendous amount of time. Not to mention filters and validators – Adrian World Jul 23 at 18:35.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions