Hello,
I do an ajax call to coldboxProxy.cfc. In process() I do a call to getModel(“beanname”) (where “beanname” is an existing bean) to retrieve a bean but insted I get an 500 error (I see it in Firebug). The Coldbox.cfc coldboxproxy.cfc is extending (coldbox.system.remote.ColdboxProxy) only has a private getModel() function. Changing the access attribute’s value from “private” to “public” has no effect.
Here is my code:
[…]
This gives me a 500 error. When I do
<cfset local.utils=getBean(“utils”)>
I get a value - no error. so the problem is in the call to getModel(). I saw in the docs that Coldbox 3.1 has a function getBean() that apparently does exactly what I want but I am not on that version.
Questions:
1 What is the equivalent to getBean() in my current version (3.0 ) of coldbox?
2 How canI detrmine the current version of Coldbox? I couldn’t find a getVersion() or equivalent while searching the /Coldbox/system base…
Marc