public function transformContent() { $form = $this->getForm('GroupAdd'); if ($form->isSent() && $form->isValid()) { $uM = $this->getManager(); $group = new UmgtGroup(); $displayName = $form->getFormElementByName('DisplayName'); $group->setDisplayName($displayName->getValue()); $description = $form->getFormElementByName('Description'); $group->setDescription($description->getValue()); $uM->saveGroup($group); // redirect to the desired view $this->getResponse()->forward($this->generateLink(['mainview' => 'group', 'groupview' => ''])); } $form->transformOnPlace(); }