Ejemplo n.º 1
0
 public function commentupAction()
 {
     $this->isAjax = TRUE;
     if ($this->_hasParam('id') && $this->_hasParam('cid')) {
         Zend_Loader::loadClass('Zend_Json');
         $id = $this->_getParam('id');
         $cid = $this->_getParam('cid');
         $comments = new CommentsModel();
         echo Zend_Json::encode($comments->upComment($cid, $id));
     }
 }