I had just moved my server from Linux to Windows and forgot to copy
over the Coldbox framework used so I downloaded the upcoming 3.0.0
RC1. As I recall, on Linux I was either using that or maybe an alpha
or beta that I don't seem to be able to find on the site now.
Either way, I am having trouble with DI working. I have my handler
defined as so:
<cfcomponent name="Page" extends="coldbox.system.EventHandler"
output="false" autowire="true">
<cfproperty name="PageContentService" type="Model"
scope="variables" />
<cfproperty name="Util" type="coldbox:plugin:FileUtils"
scope="variables" />
And further down the page I am calling:
<cfif variables.Util.isFile(expandPath('./views/content/
#lCase(pageName)#.cfm'))>
However, that is throwing an exception:
Component [handlers.Page] has no accessible Member with name [UTIL]
I have tried changing the scope to "instance" as well, and dumping
both collections to verify that they do not exist. I can't tell if
this is a coding problem on my end or possibly some scope setting in
Railo.