Question
using cffunction inside Application.cfc
Hi
I have a function I wrote that i want to be available to any .cfm page in my app. the function does not run. I dont seem to be able to call it correctly. I have tried the access attribute on cffunction in all of its settings (I think PUBLIC is what I want since the calling page is a plain old cfm page. not doing ajax/remote stuff or anything). The function works fine if i stick it in a file like functions.cfm and just include it at the top of all of my pages, however, i don't want to do that and want to use Application.cfc for this as I believe it is intended. I did just upgrade from CF5 to CF8 and this is the only thing I am dealing with. When the code lived inside application.cfm , it worked fine.
I have a function I wrote that i want to be available to any .cfm page in my app. the function does not run. I dont seem to be able to call it correctly. I have tried the access attribute on cffunction in all of its settings (I think PUBLIC is what I want since the calling page is a plain old cfm page. not doing ajax/remote stuff or anything). The function works fine if i stick it in a file like functions.cfm and just include it at the top of all of my pages, however, i don't want to do that and want to use Application.cfc for this as I believe it is intended. I did just upgrade from CF5 to CF8 and this is the only thing I am dealing with. When the code lived inside application.cfm , it worked fine.
