actions['list']); unset($this->actions['del']); unset($this->actions['edit']); unset($this->actions['update']); $this->DB_Grid($Doc, $DBObj); } function _bindFormFields($form) { $form = parent::_bindFormFields($form); $form->addRuleRequired(array('name')); return $form; } function doInsert() { $form = $this->_getNewForm(); if ($form->validate()){ $this->DBObj->initFromForm($form ); $id_form=$this->DBObj->insert(); require_once 'class/HTTP.php'; skHTTP::redirect(Constant::get('BASE_URL').'/'.CURR_PAGE.'/field?id_fm='.$id_form); }else { $form->exec(); } return true; } } ?>