function delete_by_parent() { $id = $this->uri->segment(5); $district_id = $this->uri->segment(4); $wards = new Estateward($id); $wards->delete(); flash_message('success', 'Xóa Quận/Huyện thành công.'); //redirect to city redirect($this->admin . 'estatewards/list_by_parent/' . $district_id); }