Beispiel #1
0
 public function delAction()
 {
     $guestbookMapper = new GuestbookMapper();
     if ($this->getRequest()->isSecure()) {
         $guestbookMapper->delete($this->getRequest()->getParam('id'));
         $this->addMessage('deleteSuccess');
     }
     if ($this->getRequest()->getParam('showsetfree')) {
         $this->redirect(array('action' => 'index', 'showsetfree' => 1));
     } else {
         $this->redirect(array('action' => 'index'));
     }
 }