Ben onay kutularını sunumuna değiştirmek istiyorum. Varsayılan olarak, bu var:
<dt><label>%name%</label></dt>
<dd>%element% %error %description%</dd>
Ben (biraz multiCheckbox gibi) şu var istiyorum:
<dt> </dt>
<dd><label>%element% %name</label> %error% %description%</dd>
I override the Zend_Form_Element::loadDefaultDecorators()
with
My_Form_Element_Checkbox::loadDefaultDecorators()
so this applies to all
checkboxes in use.
I can't get this working. I tried to swap the order of some decorators, but
esp. the
inside the <dt>
seems hard to fix. How can I achieve this?
BTW, varsayılan zinciri bu gibi görünüyor:
$this->addDecorator('ViewHelper')
->addDecorator('Errors')
->addDecorator('Description', array('tag' => 'p', 'class' => 'description'))
->addDecorator('HtmlTag', array('tag' => 'dd',
'id' => $this->getName() . '-element'))
->addDecorator('Label', array('tag' => 'dt'));