public function newSemanticType() { try { $model = new SemanticType(); $this->data->semantictype->entry = 'sty_' . $this->data->semantictype->entry; $model->setData($this->data->semantictype); $model->save($this->data->semantictype); $this->renderPrompt('information', 'OK', "structure.editEntry('{$this->data->semantictype->entry}');"); } catch (\Exception $e) { $this->renderPrompt('error', $e->getMessage()); } }