> -----Original Message-----
> From: Austin Govella [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, December 11, 2002 5:10 PM
> To: CF-Talk
> Subject: application.cfm vs. cfinclude
> 
> 
> 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?

It depends.  Application.cfm is going to run at the top of every page -
regardless of whether it's a display page or not.

So you can do it, but I would guess you'd run into a case sooner or
later when you don't want that DTD up there.

> 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.

Well - it's still doing both (whether the file is included in the
application.cfm or not, it's still cfincluded) but the total hit should
be negligable in both cases.
 
> And then there's the footer and the onrequestend.cfm file...

Same thing - the file is run all the time regardless - and sooner or
later you'll not want that stuff in the page and have to work around it.

That's not to say it can't be worked around... Personally I just prefer
to keep my Application.cfm/OnRequest.cfm as "clean" as possible.  That's
just personal preference however.

Jim Davis


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to