i have a component in the following folder
sitename.com/checkout/checkout.cfc
i need to access the component from this directory
sitename.com/basket/invokingtemplate.cfm
how do iwrite the createobject script for this?
createObject("component","checkout.checkout")
and also, do i just use <cfinvoke> to invoke the template as normal?
You can either do:
<cfinvoke component="checkout.checkout" method="someMethod" returnvariable="someVar">
or
<cfset checkout = createObject("component","checkout.checkout")>
<cfset someVar = checkout.someMethod()>or
<cfset checkout = createObject("component","checkout.checkout")>
<cfinvoke component="#checkout#" method="someMethod" returnvariable="someVar">
Regards, Sean
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
