Hi,
Im using Application.cfc for the first time and am experiencing an odd
problem I cant seem to solve.
Using CFMX Dev Edition and Apache2
Application.cfc code is:
<CFCOMPONENT>
<CFSET this.Name = "jsTesting" />
<CFSET this.SessionManagement = true />
<CFSET this.ScriptProtect = true />
<CFFUNCTION NAME="onRequestStart" RETURNTYPE="boolean">
<CFARGUMENT TYPE="String" NAME="targetPage" REQUIRED="true" />
<CFLOG FILE="#Application.ApplicationName#"
TEXT="onRequestStart" />
<CFRETURN true>
</CFFUNCTION>
</CFCOMPONENT>
Index file just contains html, no cfcode/output.
When index is called, onRequestStart is fired as the log is written
to, however the debug output (which is switched on) doesn't complete,
it stops whilst displaying the Execution times with the following
text:
500 Element CFC[ C:\Dev\Websites\jedi\root\js\Application.cfc |
onRequestStart(/js/index.cfm) ] from
C:\Dev\Websites\jedi\root\js\Application.cfc is undefined in a CFML
structure referenced as part of an expression.
Has anyone seen this or can see where I'm going wrong?
The same results happen if I replace the function onRequestStart with
say onSessionStart although obviously I only see this error on a
session start.
Thanks in advance
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201867
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54