hasBrochure()) { header("Content-Type: application/pdf"); readfile($product->getBrochurePath()); exit(0); } http_response_code(404); throw new RuntimeException(__("Brochure not found."));