Exemplo n.º 1
0
 public function getForms()
 {
     if (!isset($this->forms)) {
         $forms = parent::getForms();
         // set up main form with map
         /* @var $mainForm \Zend\Form\Form */
         $mainForm = $forms[static::MAIN_TAG];
         $options = $mainForm->getOptions();
         $options[Subform::OPTION_MAP_ARRAY] = $this->formMap;
         $mainForm->setOptions($options);
     }
     return $this->forms;
 }