Hello,

I try to wrap the following div structure around a Zend_Form:

<div class="outerform">
        <div class="topdiv"><div></div></div>
        <div class="content">
                <!-- Here comes the Form -->
        </div>
        <div class="bottomdiv"><div></div></div>
</div>

I tried it with this decorators:

$this->setDecorators(
        array(
                'FormElements',
                'Form',
                array(array('content' => 'HtmlTag'), array('tag' => 'div', 
'class'
=> 'content')),
                array(array('top' => 'HtmlTag'), array('tag' => 'div', 'class' 
=>
'topdiv', 'placement' => 'prepend') ),
                array(array('bottom' => 'HtmlTag'), array('tag' => 'div', 
'class' =>
'bottomdiv', 'placement' => 'append')),
                array(array('outer' => 'HtmlTag'), array('tag' => 'div', 
'class' =>
'outerform')),
        )               
);

But this is not exactly what I need. How can I get the empty
<div></div> inside topdiv and bottom div?

Hope somebody can Help :-)

Greetings,
Stefan Sturm

Reply via email to