public function productdownAction() { $this->isAjax = TRUE; if ($this->_hasParam('pid') && $this->_hasParam('cid')) { Zend_Loader::loadClass('Zend_Json'); $pId = $this->_getParam('pid'); $catId = $this->_getParam('cid'); $products = new AdminProducts(); echo Zend_Json::encode($products->downProduct($catId, $pId)); } }