Skip to content

Instantly share code, notes, and snippets.

@adamcameron
Created October 5, 2012 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamcameron/3842591 to your computer and use it in GitHub Desktop.
Save adamcameron/3842591 to your computer and use it in GitHub Desktop.
Example for @JamesRLamar
// in the file system
theApp
service
component_to_call.cfc
mem
pages
handlers
calling.cfc
// in Application.cfc
this.mappings = {
"/com/frequent/theapp" = expandPath("/com/frequent/theapp")
//or:
"/theapp" = expandPath("/com/frequent/theapp")
};
// in calling.cfc
myComp = createObject("component", "com.frequent.theapp.service.component_to_call";
// or
myComp = createObject("component", "theapp.service.component_to_call";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment