public function handleDelete($serverId) { $path = $this->serverRepo->getPath($serverId); try { $this->serverRepo->removeServer($serverId); BackupModel::removeDir($path); } catch (Exception $ex) { dump($ex); } $this->presenter->flashMessage("Smazáno.", 'success'); $this->presenter->redirect('this'); }