Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Guest
Feb 24, 2010 Feb 24, 2010

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

248
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 27, 2010 Feb 27, 2010
LATEST

Those settings are specific to Application.cfc, sorry.

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources