public function illegalWastagesAction() { $level = $this->_request->getParam("level"); $province = $this->_request->getParam("province"); $district = $this->_request->getParam("district"); $period = $this->_request->getParam("period"); $date = $this->_request->getParam("date"); $item = $this->_request->getParam("item"); $obj_item = new Model_ItemPackSizes(); $items = $obj_item->getProductById($item); $allowed = $items->getWastageRateAllowed(); $wh_data = new Model_HfDataMaster(); $params["date"] = $date; $params["item"] = $item; $params["allowed"] = $allowed; $params["province"] = $province; $wh_data->form_values = $params; $xmlstore = $wh_data->illegalWastages(); $this->view->xmlstore = $xmlstore; }