Setting the inner html text of a < span > element using Zend_Form_Decorators

Posted by Mallika Iyer on Stack Overflow See other posts from Stack Overflow or by Mallika Iyer
Published on 2010-05-20T16:48:41Z Indexed on 2010/05/20 16:50 UTC
Read the original article Hit count: 425

Filed under:
|
|
|

I'm trying to set the inner html of the < span > tag here , so it looks like: Group

this is what i have so far:

    $form->addDisplayGroup(
                array(
                        ................
                ),
                'maingroup1',
                array(
                    'legend'=>'',
                    'disableDefaultDecorators'=> true,
                    'decorators'=> array('FormElements',
                                        array('FieldSet',array('class'=>'dashed-outline2')),
                                        array(array('SpanTag' => 'HtmlTag'), array('tag'=>'span','class' => 'group',)),
                                        array('HtmlTag',array('tag'=>'div','id'=>'group1','class'=>'group','openOnly'=> true))
                                        )
                )
            );

Is there a setter / property that I can use to set the inner text of the < span> element using Zend_form_decorators? Thanks.

© Stack Overflow or respective owner

Related posts about zend-form

Related posts about zend-decorators