>If I make a cfc, and call it from the same dir that my calling page
>resides, I don't have
>to worry about "path" at all. what do I do, if I want to create a "cfc"
>directory where
>all my cfc's reside, and call them from all over my webroot?
>
Use dot-notation from the webroot:
<cfscript>
foo = createObject("component", "path.to.my.cfcs.cfcName");
</cfscript>
Regards,
Dave.
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
http://www.cfhosting.com
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4