Skip to main content
February 24, 2010
Question

Can I use mappings in an old app using application.cfm

  • February 24, 2010
  • 1 reply
  • 278 views

I am trying to map a directory in an old application.cfm  that looks like this

<cfapplication name="blahblahblah"
applicationtimeout="#createtimespan(0,2,0,0)#"
clientmanagement="Yes"
sessionmanagement="yes"
sessiontimeout="#createtimespan(0,0,20,0)#"
setclientcookies="yes">

<cfscript>
     this.customtagpaths=getDirectoryFromPath(getCurrentTemplatePath()) ;
</cfscript>

Then in a subfolder I tried calling the cfc like this...

<cfset results = createobject("component","gadget.cfc.authorize").init()>

I keep getting the cfc not found message

Could  not find the ColdFusion Component or Interface gadget.cfc.authorize.

The folder struct looks like this:

/root/cfc/authorize.cfc

/root/HillDay/register.cfm

I am hoping I am just missing a bad typing issue but my eyes are glazed over and I am sorry to say - the client is not willing ot pay for an upgrade to the application so I am stuck using app.cfm - I just had to put that in there before I got inundated with "Just upgrade you shmuck!" 

Thanks all,

Chris

    This topic has been closed for replies.

    1 reply

    Inspiring
    February 28, 2010

    Those settings are specific to Application.cfc, sorry.

    --

    Adam