> > the code you gave is for instantiating a CFC (ColdFusion component) and
> > only applies to a .cfc file, you cannot do this with a .cfm files as no
> > extension is given, a .cfc extension is thus implicitly implied.
>
> so this wouldn't work then:
> request.oExistCheck = createObject("component","cfm.ExistCheck");
Well, it actually could work, but not for the reason you might think.
The second argument is a relative path to a file. So in the previous
example:
request.oExistCheck = createObject("component","cfc.ExistCheck");
this would create an instance of ExistCheck, using the file
cfc/ExistCheck.cfc, meaning that wherever this line of code is, there
would need to be a subdirectory called cfc, with a file called
ExistCheck.cfc in it.
You can only create instances from CFCs, though.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349891
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm