On Wed, Nov 12, 2008 at 4:52 PM, Brian Dumbledore <[EMAIL PROTECTED]> wrote:
> I put my header and footer html in a custom tag (header - executionmode eq
> start, footer - executionmode not start). And I have rest of my cf stuff
> within the tag body.
>
> Is this recommended? My concern is, having huge body will somehow slow down
> the tag/page ? Is it better to have two udfs? header() and footer().
>
> Any comments ?
You will not notice the overhead. I've done a lot of formatting like
this. I tend to switch things up a bit more now and throw those hooks
in application.cfc
<!----------------------------------------------------------------------------
onRequest
----------------------------------------------------------------------------->
<cffunction name="onRequest" returnType="string">
<cfargument name="thePage" type="string" required="true">
<cfinclude template="/includes/header.cfm">
<cfinclude template="#ARGUMENTS.thePage#">
<cfinclude template="/includes/footer.cfm">
</cffunction>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315173
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4