Put your argument before your Boolean variable
declaration: like the following:
<cffunction name="onRequestStart"
returnType="boolean">
<cfargument type="String"
name="targetPage" required="true" />
<cfset boolean =
true>
<cfreturn boolean>
</cffunction>
Jason
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Stephen Adams
Sent: Wednesday, July 06, 2005
11:55 AM
To: [email protected]
Subject: Re: [CFCDev]
Application.cfc causes all pages to be blank
Right I have another, slightly connected problem. In my onRequestStart
method:
<cffunction name="onRequestStart"
returnType="boolean">
<cfset boolean = true>
<cfargument
type="String" name="targetPage" required="true"
/>
<cfreturn boolean>
</cffunction>
I keep getting an error telling me that:
Context
validation error for tag cffunction.
|
|
|
The start tag must have a matching end tag. An explicit end tag
can be provided by adding </cffunction>. If the body of the tag is
empty you can use the shortcut <cffunction .../>.
|
But my method does have a close cffunction tag.
Any ideas?
Stephen
On 7/6/05, Jeff
Anderson <[EMAIL PROTECTED]>
wrote:
my guess is you are using the onRequest method and not including the
requested page...
On 7/6/05, Stephen
Adams <
[EMAIL PROTECTED]> wrote:
Hi,
I am trying to implement a Application.cfc page, on to a site
that originally had an Application.cfm page. Now my site appeared ok when I was
using Application.cfm but since I have replaced it with Application.cfc all my
pages are appearing blank in the screen, with no error messages. I have only
created the shell functions in Application.cfc, but I thought that the pages
would still run if you just have empty methods in Application.cfc.
Anyone know could cause this?
Stephen
----------------------------------------------------------
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).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
----------------------------------------------------------
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).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]
----------------------------------------------------------