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

include root application.cfm in Application.cfc

New Here ,
Oct 23, 2006 Oct 23, 2006

Copy link to clipboard

Copied

I created a coldfusion app which has "Application.cfc" file. I want to integrate this application
to the company's main application which has "Application.cfm" in the web root folder.
The question is how can I access Application.cfm variables (like loginID)

can i use <cfinclude template="../application.cfm"> in OnApplicationStart??
the file structure is as shown below

WWWROOT(folder)
.................... Application.cfm
.....................MYAPP(folder)
...............................Application.cfc
................................page1.cfm

How can page1.cfm see the variables in Application.cfm?

Thanks

TOPICS
Advanced techniques

Views

389

Translate

Translate

Report

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
New Here ,
Oct 23, 2006 Oct 23, 2006

Copy link to clipboard

Copied

LATEST
You should create an OnRequest method in your Application.cfc and the include the parent Application.cfm. Then you'll need to include the argument.

Votes

Translate

Translate

Report

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
Documentation