/** * Parse the form * * @return void */ protected function parse() { // call parent parent::parse(); // assign id, name $this->tpl->assign('id', $this->record['id']); $this->tpl->assign('name', $this->record['name']); // can the category be deleted? if (BackendFaqModel::isCategoryAllowedToBeDeleted($this->id)) { $this->tpl->assign('showDelete', true); } }