Personally, the advantages of cfmodule outweigh those of cfinclude. The performance hit of cfmodule is really low, and cfmodule provides you with encapsulation. Variables defined within a template called by cfmodule have no effect on the executed code outside that template (unless you are using variables in request, session, application, client, server, or use the caller).
What you need to keep in mind, when you call a cfmodule template within a CFC, and use caller in that template, the variable is returned to the CFC. So if you want to use returned data from the template, you need to put business logic in your CFC which handles that. Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185771 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

