'doEdit', 'cancel' => 'doBack', 'update' => 'doUpdate'); function SiteFooter_Grid(&$Doc, &$DBObj) { $this->DB_Grid($Doc, $DBObj); } function _bindFormFields($form) { $form->addElement('html_editor', 'footer'); $form->setDefaults($this->DBObj->getData()); return $form; } function doUpdate() { $form = $this->_getEditForm(); if ($form->validate()){ $this->DBObj->initFromForm($form); $this->DBObj->save(); Session::setData($this->_getPage4SaveMessage(), 'msg', $this->DBObj->itemName.' updated'); $this->doBack(); }else { $form->exec(); } return true; } }