Created
July 1, 2010 12:24
-
-
Save misterdai/459891 to your computer and use it in GitHub Desktop.
Flag the application to run onApplicationStart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cffunction name="ApplicationRestart" returntype="boolean" output="false"> | |
<cfif IsDefined('application')> | |
<cftry> | |
<!--- This is just in case there's no app scope but variables.application ---> | |
<cfset application.setIsInited(false) /> | |
<cfreturn true /> | |
<cfcatch type="any"></cfcatch> | |
</cftry> | |
</cfif> | |
<cfthrow message="No application scope found." /> | |
</cffunction> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment