Ejemplo n.º 1
0
 public function reviewpinmereqAction()
 {
     $this->_helper->viewRenderer->setNoRender();
     if ($this->authidentity) {
         $imageid = $this->getRequest()->getParam('imageid');
         $userid = $this->getRequest()->getParam('userid');
         $accept = $this->getRequest()->getParam('accept');
         if ($accept == 'true') {
             $accept = true;
         } else {
             $accept = false;
         }
         $ImageModel = new Application_Model_Images($this->registry->DB);
         $this->view->result = $ImageModel->reviewPinMeReq($imageid, $userid, $accept);
         echo json_encode(array('status' => 'success'));
     } else {
         echo json_encode(array('status' => 'error'));
     }
 }