DB_Grid($Doc, $DBObj); } function _bindFormFields($form) { $form = parent::_bindFormFields($form); require_once 'class/DB/Lang/DLang.php'; $DLang = new DLang(); $langList = $DLang->getList(); foreach ($langList as $lang){ $name = "content[{$lang['name']}]"; if (count($langList) == 1){ $title = ''; }else{ $title = $lang['title']; } $form->addElement('html_editor', $name, $title, null, $this->DBObj->getData($name) ); //$form->addRule($name, $lang['title'].' Html content is required', 'required'); } return $form; } } ?>