public function importWSDoc() { try { $files = \Maestro\Utils\Mutil::parseFiles('uploadFile'); $model = new Corpus($this->data->idCorpus); if ($this->data->tags == 'N') { $result = $model->uploadSentences($this->data, $files[0]); } else { $result = $model->uploadSentencesPenn($this->data, $files[0]); } $this->renderPrompt('information', 'OK'); } catch (EMException $e) { $this->renderPrompt('error', $e->getMessage()); } }