On 11/10/05, Billings, Brian J. (SMG) <[EMAIL PROTECTED]> wrote:
----------------------------------------------------------Since this topic is on the table, why am I getting this error (other
than my lack of understanding)
Local variable sFacade on line 28 must be grouped at the top of the
function body.
-- Here is the function. if I take off the var it does not error.
<cffunction name="OnRequestStart" access="Public"
returntype="void" output="false" hint="I am an event handler.">
<cfargument name="event" type="ModelGlue.Core.Event"
required="true">
<cfset LoadAppSettings(CreateTimeSpan(3,0,0,0))>
<cfif len(arguments.event.getValue('logout'))>
<cfset var sFacade = createObject("Component",
CERESII.model.Facade").init('session') />
<cfset sFacade.add('loggedin',false)>
</cfif>
</cffunction>
-Brian
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).
An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
