setView($view); $form->addDecorator('Description', array('escape' => false, 'placement' => 'PREPEND')); $form->setDescription('

Using setElementsBelongTo

'); $form->setElementsBelongTo('shipping'); $form->addElement('text', 'recipient', array( 'label' => 'Ship to', 'required' => true, )); $form->addElement('text', 'address', array( 'label' => 'Address', 'required' => true, )); $form->addElement('submit', 'submit', array( 'label' => 'Submit', )); if ($request->isPost()) { if ($form->isValid($request->getPost())) { echo 'Order placed, Thank you!'; } else { echo 'You have errors in your form, please check'; } } echo $form->render();