I have inherited a project where several remote CFCs have been opened for some Ajax requests and inside < / Strong> Most of the CFCs have the following:
Now I've never used Is there a problem with this code? If so, are they enough to give me all CFCs I see that this is a quick example: . using the code this is similar to using. Because your function is If any The relevant CF document: "" "" & lt; Cfset var. Response = true />
var and
this has been used simultaneously in this way, so I'm not sure That's what to do about it, so I think my questions are:
& lt; Cfset var req.response = true /> ?
& lt; Cfcomponent & gt; & Lt; Cffunction name = "check_foo" access = "remote" returnformat = "plain" & gt; & Lt; Cfargument name = "isfoo" type = "string" required = "false" default = "no" sign = "I check string for foo" /> & Lt; Cfscript & gt; / * Setup new response * / var this.response = false; Check for / * Foo * / if (! Findnocase ("foo", arguments.isfoo)) {/ * no foo! * / This.response = false; } Make this return. reaction; & Lt; / Cfscript & gt; & Lt; / Cffunction & gt; & Lt; / Cfcomponent & gt;
Update:
Local area will also be included as a local variable in dumping as
logic and
this scopes (documented) Can not be done, but I get this result in bare CFCs, and you see it in my screenshot.)
access = "remote" On each call, a new example of CFC will be found, and therefore a bare
this area is therefore "safe" But still there is a bad idea
var is in non-remote jobs, you will be getting unwanted persistence and consequently the conditions are invalid data.
Comments
Post a Comment