public function processReorderItemsAction() { $idFrom = (int) $this->_getParam("idFrom"); $idTo = (int) $this->_getParam("idTo"); // utilizing the ORM in the meantime, but can be optimized $enumerationsClosure = new EnumerationsClosure(); $enumerationsClosure->reorder($idFrom, $idTo); $data = array(); $data['msg'] = __('Updated successfully'); $json = Zend_Controller_Action_HelperBroker::getStaticHelper('json'); $json->suppressExit = true; $json->direct($data); }