Wrapper class for sub forms Zend Form

For programming and general questions on Zend Framework
Post Reply
arinjit
Posts: 1
Joined: Sat May 26, 2018 8:59 am

Wrapper class for sub forms Zend Form

Post by arinjit » Sat May 26, 2018 9:23 am

Hello Folks,
I have three sub forms. First two sub forms will have one div wrapper class and last form will have separate wrapper class div like following,

Code: Select all

<div class='row'>
    <div>
       subform 1 
    </div>
    <div>
       subform 2
    </div>
</div>
<div class='row'>
    <div>
       subform 3
    </div>
</div>
Following is how I am adding subforms

Code: Select all

$this->addSubForms(array(
            'user'  => $firstForm,
            'second' => $second
        ));

//Some more codes

$this->addSubForms(array(
            'third'  => $thirdForm,
       ));
Can any one help me how can I add first and second subform in a single div? Thanks in advance!

Post Reply