Exemplo n.º 1
0
 public function dostaturecommentAction()
 {
     $this->_helper->viewRenderer->setNoRender(true);
     if ($this->auth->hasIdentity()) {
         $staturecomment = new Application_Model_Stature($this->registry['DB']);
         $statureid = $this->getRequest()->getParam('statureid');
         $text = $this->getRequest()->getParam('text');
         echo json_encode($staturecomment->dostatureComment($statureid, $text));
     } else {
         echo json_encode(array('status' => 'error'));
     }
 }