public function hiddenAction() { $this->isAjax = true; if ($this->_hasParam('id')) { Zend_Loader::loadClass('Zend_Json'); $id = $this->_getParam('id'); $comments = new CommentsModel(); $result = $comments->hiddenComment($id); echo Zend_Json::encode($result); } }