Where do you keep your user defined functions? Do put them all in one file under a 'lib' folder and then cfinclude that file? Or, do you store them in a component and invoke that component? What is the best practice?
Thanks for that link. I like the idea of simply putting them in a functions.cfm file and then cfinclude that file only on the pages where those functions are used.
what I tend to do is to put UDF's into a seperate directory (udfs) under the main root and then read the file into the app scope and store the function(s) there. we found that this speeded things up for us and prevented the need for the file to be read in every time we needed it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.