public function deletarImagemCumprimentoDoObjetoAction() { $url = '/comprovarexecucaofisica/etapas-de-trabalho-final/idpronac/' . $this->getRequest()->getParam('idpronac'); try { Seguranca::encrypt($this->getRequest()->getParam('idpronac')); $cumprimentoObjetoArquivoModel = new CumprimentoObjetoXArquivo(null, $this->getRequest()->getParam('idCumprimentoDoObjeto'), $this->getRequest()->getParam('idArquivo')); $cumprimentoObjetoArquivoModel->apagarArquivo(); parent::message('Imagem deletada com sucesso', $url, 'CONFIRM'); } catch (Exception $exception) { parent::message('Não foi possível deletar a imagem', $url, 'ERROR'); } }