if (!is_dir($civicrm_root . "/api/v3/examples/$entity")) {
mkdir($civicrm_root . "/api/v3/examples/$entity");
}
- $f = fopen($civicrm_root . "/api/v3/examples/$entity/$exampleName.php", "w+b");
+ $f = fopen($civicrm_root . "/api/v3/examples/$entity/$exampleName.ex.php", "w+b");
$contents = $smarty->fetch($civicrm_root . '/tests/templates/documentFunction.tpl');
$contents = \CRM_Core_CodeGen_Util_ArraySyntaxConverter::convert($contents);
fwrite($f, $contents);