Well for example let's say in a few weeks you need to display a page w/out that common
header (popup window for example). Or, perhaps you want to execute a template that
won't return any output at all, only a cflocation to some other page. Well you're
stuck with all that display stuff in your common application.cfm. It's usually
cleaner to include stuff like that as needed, and it's not that much more work (less,
in the long run).
I think in general it's not only what works at the moment, but what will also work for
the foreseeable future that should be used.
Cheers,
-Max
At 2/25/2001 03:23 AM -0500, you wrote:
>Why would that be bad practice? Does it cause problems with pages or load
>times? I was always taught 'If it works, use it!'. I'm new to Cold Fusion so
>maybe there is a legitimate reason for not doing it but it seems to me that
>this is the purpose of the application file, to let pages know information
>that is consistent throughout the directory.?
>
>Jeff
>----- Original Message -----
>From: "Howie Hamlin" <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Sunday, February 25, 2001 2:33 AM
>Subject: Re: Application generating HTML?
>
>
>> You can definitely do that but I think you'll find that it is considered a
>> bad practice.
>>
>> Regards,
>>
>> Howie Hamlin - inFusion Project Manager
>> On-Line Data Solutions, Inc.
>> www.CoolFusion.com
>> 631-737-4668 x101
>> inFusion Mail Server (iMS) - the World's most configurable mail server
>> Get your free copy of iMS POST-SE Server from CoolFusion!
>>
>> ----- Original Message -----
>> From: "Jeff Davis" <[EMAIL PROTECTED]>
>> To: "CF-Talk" <[EMAIL PROTECTED]>
>> Sent: Sunday, February 25, 2001 2:05 AM
>> Subject: Application generating HTML?
>>
>>
>> > Maybe this is a silly questions but here goes:
>> >
>> > Can you place html elements such as layer and content information in the
>> application.cfm file and it displayed on the page that is linked too? For
>> example, can I place my header layer and navigation layer in the
>application
>> file so they will display on each page? I know I can use a cfinclude file
>> but I figured they all call the application file anyway why not ask?
>> >
>> >
>> > Jeff
>> >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists