public function ajaxWastagesComparisonAction() { $province = $this->_request->getParam("province"); $district = $this->_request->getParam("district"); $date = $this->_request->getParam("date"); $item = $this->_request->getParam("item"); $option = $this->_request->getParam("allowed"); $obj_product = new Model_ItemPackSizes(); $prod_result = $obj_product->getProductById($item); $allowed = $prod_result->getWastageRateAllowed(); $wh_data = new Model_HfDataMaster(); $wh_data->form_values = array('prov_id' => $province, 'dist_id' => $district, 'date' => $date, 'item' => $item, 'option' => $option, 'allowed' => $allowed); $xmlstore = $wh_data->wastagesComparison(); $this->view->xmlstore = $xmlstore; }