Ok, here is the answer (which I just figured out with some old fashioned trail-and-error)
If you want your custom functions in Application.cfc to be accessable in your cfm pages you have to include the onRequest method into your Application.cfc <cffunction name="onRequest" returnType="void" output="true"> <cfargument name="targetPage" type="string" required=true/> <cfinclude template="#arguments.targetPage#"> </cffunction> Cheers, Max Mike Kear wrote: > I have functions in Application.cfc that are outside the normal > methods. i.e. not inside onRequestStart or onApplicationStart etc It > just includes them as methods just like any other. > > > Tom, are you sure you're not nesting your function inside another method? > > > Cheers > Mike Kear > Windsor, NSW, Australia > Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month > > > On 7/3/06, Tom MacKean <[EMAIL PROTECTED]> wrote: > > > > I just cut and pasted the code from your post. I added the function after my > > OnRequestEnd function and put the "Hello Max" code on a test page. The page > > gives me the grey unexpected error box with Variable MAXFUNC is undefined. > > > > I'm running CFMX 7 on Apache / Windows XP. Maybe it's just me. Has anyone > > else tried Max's code? > > > > > > Tom > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~----------~----~----~----~------~----~------~--~---