Esempio n. 1
0
 public function delGalleryImageAction()
 {
     $mediaMapper = new MediaMapper();
     if ($this->getRequest()->isSecure()) {
         $mediaMapper->delMediaById($this->getRequest()->getParam('id'));
         $this->addMessage('deleteSuccess');
         $this->redirect(array('action' => 'treatgallery', 'id' => $this->getRequest()->getParam('gallery')));
     }
 }