Andy Jarrett // Code. Develop. Manage.

UDF file in Model Glue

This has just came up on the MG Lists and I thought i should post my solution on how I implement a UDF file in MG1)My UDF file is a component (cfc) on the root of the site. Example UDF:

2)Then in my controller (in the onRequestStart):

3)On my view page I have
Then to call a function#udf.getDateTime()#

I’m here, learning and working away. If you liked this content and want to keep me going, consider buying me a coffee.
Your support keeps this site running and the coffee brewing! ☕️