_getNewForm(); if ($form->validate()) { $data = $form->getValues(); $form->addElement('static', 'dump', ['label' => 'SUBMITTED VALUES']); $form->getElement('dump')->setValue(highlight_string(var_export($data, true), true)); } $this->_addFormItem($form); return $this; } protected function _getNewForm(array $options = []) { $options = array_merge($this->_getFormOptions('new'), $options); $options['hasButtons'] = false; $options['defaults'] = $this->_formDefaults; $form = new Qs_Form($options); $this->_bindFormFields($form); $form->addButtons(); return $form; } abstract protected function _bindFormFields(Qs_Form $form); }