If you have a ColdBox config setting UDFLibraryFile, then you'll want to change it when upgrading to ColdBox 4.0. It functions the same, but is now called applicationHelper.
applicationHelper is an optional setting where you can declare the path to a UDF template to load for usage in the views, layouts and event handlers. You can use relative paths to your application's root or ColdFusion mappings.
For example if I have my udf template called udf.cfm in my includes directory I would use:
component hint="ColdBox Configuration" {
function configure(){
coldbox.applicationHelper = "includes/udf.cfm";
}
}
Or if I have them in a mapping called myudfs, then I would use:
applicationHelper = "/myudfs/udf.cfm";
You can also use an array to declare multiple paths:
applicationHelper = ["includes/udf.cfm", "/myudfs/udf.cfm"];
See what else is new in ColdBox 4.0!
Add Your Comment