Hello,
I am a newbie to ColdBox so please forgive me if I am overlooking
something very basic. However, I am having a hard time getting the
dependencies to inject into both my handlers and my model.
Here is one example that I am trying to work out. I need to get
access to event.BuildLink() inside my model, so I did the following:
1) I added <cfproperty name="modelRC" type="coldbox:requestService"
scope="instance"> at the top of the CFC
2) In the function I added:
<cfset var event = instance.modelRC.getContext() />
#event.buildLink('mylinkstuff')#
However I am getting an error that says that ModelRC is undefined. In
my Coldbox.cfc my IOC configuration is set as follows so I can use
ColdSpring.
//IOC Integration
ioc = {
framework = "coldspring",
reload = true,
objectCaching = false,
definitionFile = "config/coldspring.xml.cfm"
};
Any help would be great as getting this to work has been the biggest
problem for me. I am thinking I have to be missing a setting
someplace but I could not figure out where.
Thanks!
Jason