A thing I brought up this past weekend because someone posted something in
my blog. Why is this working?
I create a folder called 'test' and inside that folder, I have a subfolder
called 'test2'. Inside test, I create index.cfm with the following code:
<cfscript>
stuffObj = createObject('component','test2/stuff');
</cfscript>
<cfdump var="#stuffObj#">
Inside test2, I have stuff.cfc with the following code:
<cfcomponent>
<cffunction name="sayHello" access="public">
<cfreturn "Hello World!"/>
</cffunction>
</cfcomponent>
And, it works. Why? Is this a bug? Why isn't this documented? In the
example above my directory structure is effectively:
/test/test2
/test/index.cfm
/test/test2/stuff.cfc
Technically this should fail because according to the documentation
"rules" that ... CFCs need to be relative to one of the following: root, a
cfmx mapping or a custom tag mapping. Not to mention that it should fail
because of the 'test2/stuff' which should be 'test2.stuff' according to
the documentations.
Could anyone clarify this? or is this really a bug?
Thanks,
~Todd
--
============================================================
Todd Rafferty ([EMAIL PROTECTED]) - http://www.web-rat.com/ |
Team Macromedia Volunteer for ColdFusion |
http://www.macromedia.com/support/forums/team_macromedia/ |
http://www.flashCFM.com/ - webRat (Moderator) |
http://www.ultrashock.com/ - webRat (Back-end Moderator) |
============================================================
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists