Title:
Bug 75031:(Watson Migration Closure)This is an ER to request support for relative component paths
| View in TrackerStatus/Resolution/Reason: To Fix//
Reporter/Name(from Bugbase): marc esher / marc esher (marcesher)
Created: 01/16/2009
Components: Language, CF Component
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 4
Problem:
This is an ER to request support for relative component paths.
This would provide the ability to create objects from a location relative to the code that's calling create object, with the ability to go "UP" directories when searching. In addition, this would include support for relative paths in the "extends" attribute of the cfcomponent tag.
This functionality would provide much-needed portability for directories of components.
Here are some examples of intended usage:
/webroot/
/webroot/someproject
/webroot/someproject/Base.cfc
/webroot/someproject/dir1
/webroot/someproject/dir1/MyComponent.cfc
/webroot/someproject/dir2
/webroot/someproject/dir2/OtherComponent.cfc
-- extends --
<cfcomponent name="someproject.dir1.MyComponent" extends="../Base.cfc">
-- createobject --
from within /someproject/dir2/OtherComponent.cfc:
<cfset collaborator = createObject("component","../dir1.MyComponent")>
Method:
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3037289
External Customer Info:
External Company:
External Customer Name: marc esher
External Customer Email: 70390EBF47F01CAF992015B9
External Test Config: 01/16/2009
Attachments:
Comments: