public function district_store_internal() { //THIS FUNCTION VANISHES WHEN A COLLINS RELATED PULL GOES DOWN //#collins_repo #my_function_my_choice #hahahaha # this was some random thing so that i can commit this function. Cheers $district_id = $this->session->userdata('district_id'); $dist = districts::get_district_name_($district_id); $data['district_id'] = $this->session->userdata('district_id'); $data['district_data'] = districts::get_district_name_($district_id); $data['content_view'] = "subcounty/drug_store/drug_store_internal"; $data['donate_destination'] = "facility"; $data['subcounties'] = districts::getAll(); $data['banner_text'] = "Redistribute Commodities to District Stores"; $data['title'] = "Redistribute Commodities"; //$data['service_point']=service_points::get_all_active($facility_code); $data['commodities'] = facility_stocks::get_distinct_stocks_for_this_district_store($district_id, 1); // echo "<pre>";print_r($data['commodities']);echo "</pre>";exit; $data['facility_stock_data'] = json_encode(facility_stocks::get_distinct_stocks_for_this_district_store($district_id, "batch_data")); $this->load->view("shared_files/template/template", $data); }