Exemplo n.º 1
0
 public function deleteimagecommentAction()
 {
     $this->_helper->viewRenderer->setNoRender();
     if ($this->authIdentity->userid) {
         $deleteimagecomment = new Application_Model_Images($this->registry['DB']);
         $commentid = $this->getRequest()->getParam('commentid');
         $deleteimagecomment->deleteimageComment($commentid);
         echo json_encode(array('status' => 'success'));
     } else {
         echo json_encode(array('status' => 'error'));
     }
 }