src/View/NewForm.php
public function insertRecord()
    {
        $recArr = $this->readInputRecord();
        //$this->setActiveRecord($recArr);
        if (count($recArr) == 0)
            return;

        try {
            $this->validateForm();
        } catch (Openbizx\Validation\Exception $e) {
            $this->processFormObjError($e->errors);
            return;
        }

        $this->_doInsert($recArr);

        //$this->commitFormElements(); // commit change in FormElement
        // in case of popup form, close it, then rerender the parent form
        /* if ($this->parentFormName)
          {
          $this->close();

          $this->renderParent();
          } */

        $this->formHelper->processPostAction();
    }
public function insertRecord()
    {
        $recArr = $this->readInputRecord();
        //$this->setActiveRecord($recArr);
        if (count($recArr) == 0)
            return;

        try {
            $this->validateForm();
        } catch (Openbizx\Validation\Exception $e) {
            $this->processFormObjError($e->errors);
            return;
        }

        $this->_doInsert($recArr);

        //$this->commitFormElements(); // commit change in FormElement
        // in case of popup form, close it, then rerender the parent form
        /* if ($this->parentFormName)
          {
          $this->close();

          $this->renderParent();
          } */

        $this->formHelper->processPostAction();
    }
Insert new record

@return mixed