> I use includes for the DTD at the top of every page. > > I was planning on using cfinclude to add the DTDs, but if > the application.cfm is automatically stuck at the top of > every page, is there a reason why it'd be bad to ask the > it to add the DTD? > > I was thinking I'd save myself some small bit of server > load if it only processed te application.cfm, as opposed > to processing application.cfm AND a cfinclude. > > And then there's the footer and the onrequestend.cfm file...
The reason you might want to avoid doing this is simply that, by putting these things in Application.cfm and OnRequestEnd.cfm, they'd be output in every page whether you want them or not. For example, if you want to use CFCONTENT to push a non-HTML file or generated non-HTML text to the browser, you wouldn't want your DTDs and footers in there. In general, it's usually a good idea to only place server-side code in these files for this reason. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

