Yes, but maybe you want to learn OOP first.
Inside a CFC you can do this
<cffunction name="Method">
<cfset var object = CreateObject('component','component.cfcsomething').init()
/>
or
<cfset CreateObject('component','component.cfcsomething').CallSomeMethod()
/>
</cffunction>
Or you can extend another CFC like an OO class.
On 3/8/07, Scott Weikert <[EMAIL PROTECTED]> wrote:
>
> Hey gang -
>
> I'm currently revamping various parts of my main app to CFC-ify it up.
> Modernization and all that rot.
>
> Quick question - can you call one CFC from within another CFC? And if so
> (I imagine so), what's the method?
>
> In my case, I'd like to just have another <cffunction> block in the same
> CFC file, so that, say, function1 and function2 both can call function3
> at some point, within that file.
>
> --Scott
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 &
Flex 2.
Free Trial
http://www.adobe.com/products/coldfusion/flex2/
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271895
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4