public function handleDeleteBackup($file) { if ($this->backupModel->removeFile($this->path, $file)) { $this->flashMessage('Záloha ' . $file . ' odstraněna', 'success'); } else { $this->flashMessage('Něco se nepovedlo :/ ', 'error'); } if ($this->isAjax()) { $this->redrawControl(); } else { $this->redirect('this'); } }