>So if I have a file - file.cfc for example - I could split it up easily?
>
>But would I still be able to instanciate it the same way?
>
>

Yes, just make sure you're not using a cfinclude within a function. That 
exposes all protected local vars. Rather include the entire function as in
<!--- componentExample.cfc --->
<cfcomponent output = "false" etc>

     <cfinclude template= "/pathToFunctions/function1.cfm">
     <cfinclude template= "/pathToFunctions/function2.cfm">
     etc.
</cfcomponent>

then you can instantiate it as usual 
<cfset compExample = CreateObject("component", componentExample) />

hth,
larry 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306829
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to