예제 #1
0
 public function ansquestionAction()
 {
     $this->_helper->viewRenderer->setNoRender(true);
     if ($this->auth->hasIdentity()) {
         $ansquestion = new Application_Model_forum($this->registry['DB']);
         $questionid = $this->getRequest()->getParam('questionid');
         $answer = $this->getRequest()->getParam('answer');
         $date = $this->getRequest()->getParam('date');
         $this->view->results = $ansquestion->ansQuestion($questionid, $answer, $date);
     }
 }