Injecting UDFLibraryFile Into Model Objects

Is this possible? What would be the preferred way?

Thanks.

- Sean

Like most things in ColdBox there are multiple was to accomplish this.

If your UDF is in a .CFM (like the ApplicationHelper.cfm) I like this approach best: https://groups.google.com/forum/#!searchin/coldbox/coldbox$20inject$20udf/coldbox/ArHZtR08i5A/I51JGVFtc7AJ Keep reading on that thread and you’ll see other examples.

I would personally create a “Helper.cfc” and inject it like any other model.

Aaron

Thanks Aaron, didn't even think of the Helper model object, that
sounds like a good way to go.