Try out the following code to convert the "dt" tag or put blank whatever you
want.
============================================================
$this->setElementDecorators(array(
array('ViewHelper'),
array('Errors'),
array('Description', array('tag' => 'td', 'class' =>
'description')),
array('HtmlTag', array('tag' => 'td')),
array('Label', array('tag' => 'td')),
array(array('row' => 'HtmlTag'),array('tag' => 'tr'))
));
============================================================
Holger Lampe wrote:
>
> I have a form element like this:
>
>
>
> $checkbox = new Zend_Form_Element_Checkbox('thecheckbox');
>
> $checkbox->setDescription('do this');
>
>
>
> And I want following result:
>
>
>
> <dd><input type="checkbox" name=" thecheckbox " id=" thecheckbox "
> value="1"
> /> do this</dd>
>
>
>
> How do I achieve this?
>
>
>
>
>
> Another question.
>
> How do I remove the <dt></dt> from Zend_Form_Element_Submit,
> removeDecorator('label') doesn't seem to do the trick.
>
>
>
> Cheers,
>
> Holger
>
>
>
--
View this message in context:
http://www.nabble.com/Zend_Form---Description-tp16103893p22110023.html
Sent from the Zend Framework mailing list archive at Nabble.com.