Questions tagged [application.cfc]

174 questions
0
votes
1 answer

Location for Traffic tracking on an FW/1 site

I am currenting using FW/1 and tracking traffic via the following function call this.wsTraffic.add(action = { SubSystem = getSubSystem(), Section = getSection(), Item = rc.slug != "" ? rc.slug :…
James A Mohler
  • 10,562
  • 14
  • 41
  • 65
0
votes
1 answer

Static object that is accessible to all users like Application.cfc

I've done a fair bit of PHP over the years but I'm currently learning ColdFusion and have come across the Application.cfc file. Basically this is a class that's created once (has an expire date). The class handles incoming users and can set session…
0
votes
2 answers

Coldfusion mapping cfinclude

I am trying to use mappings for the first time and I am having some issues. In my CFadmin I created a mapping which goes like this: Logical Path: /email_sender Directory Path: E:\sites\Example.Com\cf_modules\autoresponders\Emails\emailLists I…
Geo
  • 3,048
  • 4
  • 37
  • 78
0
votes
2 answers

Trouble with page header code being added to a cfc call from a bind

I have some includes in my onRequestStart() Method which I have by-passed for cfc requests using: (which I got from Ray Camden on a forum here…
Jim
  • 11
  • 1
0
votes
3 answers

ColdFusion = OnRequest Error

Looking through the logs, we're getting hundreds of the following "Error","jrpp-185","08/21/12","10:05:43","PATH","www.domain.com Agent:Mozilla/4.0 (compatible; Synapse) Error: An exception occurred when invoking a event handler method from…
pee2pee
  • 3,184
  • 4
  • 40
  • 101
0
votes
1 answer

Is there a way to secure folders in ColdFusion, without the use of Application.cfc in every folder?

The only way I can figure how to secure folders, is to include a basic Application.cfc in every-single-one including sub-folders. If file /test/thisfile.cfm is secure and sends a user not logged in to the login page, however the folder /test/test2/…
mawburn
  • 2,048
  • 4
  • 27
  • 46
0
votes
1 answer

Can I specifiy a "target" for a Coldfusion template which is inserted from application.cfc

Just wondering (Coldfusion Newbie). I'm on this page, showing an example how to setup a user login/logout in Coldfusion. Simple question: If the user is not logged in, the application.cfc inserts a login form. Question: Is there any way to set a…
frequent
  • 24,965
  • 53
  • 166
  • 316
-1
votes
1 answer

404 error handling

I am trying to configure the application.cfc to include error handling. I have this: /** * @hint ColdFusion received a request for a non-existent page. */ public boolean function onMissingTemplate(String targetPage) { return true; } This does…
John Barrett
  • 67
  • 1
  • 5
-4
votes
1 answer

How to call a function in coldfusion

I a test.cfc I have created a component in Application.cfc using Now how do I call a method…
cfuser
  • 21
  • 4
1 2 3
11
12