The accepted treatment for a femur or thigh fracture is