public function commentdownAction() { $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->downComment($cid, $id)); } }