/** * This function gives all data of a particular requisition id. * @parameters * @param {Integer} req_id = id of requisition. * * @return {Json} Json array of all values. */ public function getapprreqdataAction() { $req_data = array(); $req_id = $this->_getParam('req_id', null); $requ_model = new Default_Model_Requisition(); if ($req_id != '') { $req_data = $requ_model->getAppReqById($req_id); } $this->_helper->json($req_data); }