1 Reply Latest reply on Mar 15, 2010 4:01 AM by Adam Cameron.

    cffunction can be called public or remote, but you can not tell wich one was used

    zzappr Level 1

      if you have


      <cffunction name="setSomething" access="remote" returntype="void" hint="does something depending on what access method was used" >
      <cfargument name="id" required="true" type="numeric">


      <cfset accessmethodused=thisfunction.methodused>


      <cfif thisfunction.methodused eq "remote"> redirect after call</cfif>

      <cfif thisfunction.methodused eq "public"> dont redirect anywhere </cfif>