Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Gib Sllab #1
application.cfc best practices
I'm trying to migrate code in my application.cfm page to a application.cfc
file. I tried applying my cfapplication tag code to the onApplicationStart but
that didn't seem to work. I then applied it to the onRequestStart and it seems
to work fine but just curious if that's right. Can someone give me a
recommendation as to which method should be used for this? Also, how do I
propoerly define the constructor function of the application.cfc?
<cfcomponent>
<cffunction name="init" access="private" returntype="void" output="false">
</cffunction>
<cffunction name="onApplicationStart">
</cffunction>
<cffunction name="onRequestStart" returnType="any">
<!--- Application settings
-------------------------------------------------->
<cfapplication
name="templateFB4"
applicationtimeout="#CreateTimeSpan(30,00,00,00)#"
clientmanagement="yes"
clientStorage="registry"
loginStorage="cookie"
sessionmanagement="yes"
sessiontimeout="#CreateTimeSpan(00,30,00,00)#"
setclientcookies="yes"
setdomaincookies="yes" />
<!--- Fusebox required --------------------------------------------------->
<cfsilent>
<cfif right(cgi.script_name, Len("index.cfm")) NEQ "index.cfm" AND
right(cgi.script_name, 3) NEQ "cfc">
<cflocation url="index.cfm" addtoken="no" />
</cfif>
</cfsilent>
</cffunction>
</cfcomponent>
Gib Sllab Guest
-
Best practices in LINUX?
I have CFMX 7.02 running on ubuntu. It is running as the default user, NOBODY, and I'm experiencing alot of security headaches. I need access to... -
Best Practices?
I've been an ASP developer for ... swhoo, too long and so I'm used to doing everything all in one page (the form, validation and then processing). ... -
Best practices
Hello All, I am working on an application involving the interoperability between J2EE and .NET. One of my requirements is to send an XML document... -
Some PHP best practices
I'm starting a new project, and I was wondering what is considered best practise in the following cases: * Connecting to multiple databases... -
Application Best Practices w/DB2
I inherited a UDB database to manage recently. It talks to a Websphere application coded in Java. The developers previously managed the DBA...



Reply With Quote

