예제 #1
0
 public function commentanswerAction()
 {
     $this->_helper->viewRenderer->setNoRender(true);
     if ($this->auth->hasIdentity()) {
         $commentans = new Application_Model_forum($this->registry['DB']);
         $answerid = $this->getRequest()->getParam('answerid');
         $comment = $this->getRequest()->getParam('comment');
         $this->view->results = $commentans->commentAnswer($answerid, $comment);
     }
 }