Title:
Bug 82613:(Watson Migration Closure)Right now in order to get the root folder of an applicaiton we need to put getDirectoryFromPath(getBaseTemplatePath()) in Application
| View in TrackerStatus/Resolution/Reason: Closed/Deferred/
Reporter/Name(from Bugbase): Jared Rypka-Hauer / Jared Rypka-Hauer (Jared Rypka-Hauer)
Created: 04/05/2010
Components: Language, Functions
Versions: 9.0.1
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Minor / Unknown
Locale/System: English / Platforms All
Vote Count: 1
Problem:
Right now in order to get the root folder of an applicaiton we need to put getDirectoryFromPath(getBaseTemplatePath()) in Application.cfc, and that doesn't really help with getting that same path from within a template where we have to do some special magic to find the root folder of the current application.Based on the growing strength of the "application" concept within ColdFusion, it only makes sense to have getApplicationPath() or getApplicationRootPath() available.It would return the root folder of the current application... i.e. the folder that contains the current Application.cfc or Application.cfm.The main place this would be useful is within Application.cfc for setting up mappings and custom tag paths, but it would also be useful for doing includes from within other libraries, or any time a path relative to the currently running application root is necessary (places like ColdSpring, where the context is always the current app folders even if the library is stored in other places).
Method:
Result:
Right now in order to get the root folder of an applicaiton we need to put getDirectoryFromPath(getBaseTemplatePath()) in Application.cfc, and that doesn't really help with getting that same path from within a template where we have to do some special magic to find the root folder of the current application.Based on the growing strength of the "application" concept within ColdFusion, it only makes sense to have getApplicationPath() or getApplicationRootPath() available.It would return the root folder of the current application... i.e. the folder that contains the current Application.cfc or Application.cfm.The main place this would be useful is within Application.cfc for setting up mappings and custom tag paths, but it would also be useful for doing includes from within other libraries, or any time a path relative to the currently running application root is necessary (places like ColdSpring, where the context is always the current app folders even if the library is stored in other places).
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3041276
External Customer Info:
External Company:
External Customer Name: Jared Rypka-Hauer
External Customer Email: 08C411A143BC38A7992016B6
External Test Config: 04/05/2010
Attachments:
Comments: