I'm trying to get rid of the default decorators in zend form.
I don't want the dl, dt & dd tags.
in my form class that extends Zend_Form i have;
// Add the part_no element
$element = new Zend_Form_Element_Text('part_no', array(
'id' => 'text',
'label' => 'Part No:',
'required' => true,
'filters' => array('StringTrim','StringToUpper'),
'validators' => array(array('StringLength', false, array(0,32)))
));
$element->removeDecorator('DtDdWrapper');
$this->addElement($element);
however i still get the dt and dd html tags.
am i doing this wrong?
is there a simple way to turn off this feature for all forms. I'm finding that
these tags are making my css more complicated than it needs to be.
________________________________
-
Williams Refrigeration is a trading name of AFE Group Limited.
Registered in England & Wales under Registered Number 3872673. Registered
Office Address - Bryggen Road, North Lynn, Industrial Estate, Kings Lynn,
Norfolk, PE30 2HZ
Williams Refrigeration filters email attachments for spam and viruses and
malicious content with Sophos Puremessage. While every care has been made to
ensure that this message is secure and virus free, we cannot be held
responsible for any damage arising from computer viruses and advise that you
perform your own checks on this and any other inbound messages.
This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If
you have received this email in error or are having trouble sending email to us
please notify the system administrator - [email protected]
Any views or opinions expressed in this e-mail are those of the sender and do
not necessarily coincide with those of Williams Refrigeration or the AFE Group.