Title: RE: exposing model functions as 'remote'
Thread: exposing model functions as 'remote'
Forum: Need Help?
Conference: ColdBox
User: mikkhait Here is basically how I got it to work
[code]
<cfcomponent name="coldboxproxy"
output="false" extends="coldbox.system.extras.ColdboxProxy">
<cffunction
name="getZip" output="false" access="remote" returntype="any">
<cfargument
name="zip">
<cfargument name="radius">
<cfset zs =
CreateObject("component","model.ZipCodeService").init()>
<cfset
zs.setZipCode(zip)>
<cfset zs.setRadius(radius)>
<cfset qZipCodeResult =
zs.getLocationWithinRadius()>
<cfreturn qZipCodeResult>
</cffunction>
</cfcomponent>
[/code]
This is not an ideal solution. But you are saying
that I will be able to call 'remote' method avoiding interceptors in 2.6?
http://forums.coldboxframework.com/index.cfm?event=ehMessages.dspMessages&threadid=1BFF10DE-FF65-CEF6-6536483BBA645106