public function handleDeleteImage($image) { try { $this->gallery->deleteImage($this->params['idGallery'], $this->params['lang'], $image); $this->flashMessage('admin.gallery.imageDeleteSuccess'); } catch (FileNotFoundException $ex) { $this->flashMessage('admin.gallery.imageNotFound', Flash::ERROR); } $this->redirect('this'); }
public function renderDetail($id) { $gallery = $this->gallery->getGallery($id, $this->translator->getLocale()); $this->template->galleryPath = galleryPath . $gallery->idGallery . '_' . $gallery->lang; $this->template->gallery = $gallery; }