예제 #1
0
 public function imagecommentAction()
 {
     $this->_helper->viewRenderer->setNoRender();
     if ($this->authIdentity->userid) {
         $imageid = $this->getRequest()->getParam('imageid');
         $text = $this->getRequest()->getParam('text');
         if (!empty($text)) {
             $ImageModel = new Application_Model_Images($this->registry->DB);
             $result = $ImageModel->doComment($imageid, $text);
         }
     }
 }