getElement()->getSubForms(); $itemSubForm = reset($itemSubForm); if ($itemSubForm) { /** @var \Zend_Form_Element $element */ foreach ($itemSubForm as $element) { $name = $element->getName(); $label = $element->getLabel(); $label = ($label) ? $label : ' '; $thead .= '