Skip to content

Instantly share code, notes, and snippets.

@jamiejackson
Forked from boughtonp/gist:f27056ae9bf96afc42e1
Created November 19, 2012 14:40
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 jamiejackson/541b783899b532cad7b3 to your computer and use it in GitHub Desktop.
Save jamiejackson/541b783899b532cad7b3 to your computer and use it in GitHub Desktop.
Modified FB skeleton Application.cfc
component
{
// create the mapping
this.mappings["/fuseboxMapping"] = expandPath('../fusebox5');
/* dump mapping
* for me, this returns:
* /var/www/apps/army_lms_query_tool/server_deployment_root/fusebox5
*/
writeOutput("mapping: #this.mappings['/fuseboxMapping']#<br>");
/* check for existence of fusebox's Application.cfc
* for me, this returns:
* YES
*/
writeDump(var="file exists? #fileExists("#this.mappings["/fuseboxMapping"]#/Application.cfc")#");
/* try to create fusebox object
* for me, this produces:
* Could not find the ColdFusion component or interface fuseboxMapping.Application.
*/
createObject("component","fuseboxMapping.Application").bleed(variables);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment