Not sure if I have missed something, with the 3.x release of ColdBox.
However, I fought trying to get a model injected into some code using
the cfproperty tag, as follows:
Simply put, the model did not get injected into the handler. I could
go a getModel("CustomerService") and that worked fine.
So, I dug and dug through documentation (I bought the ColdBox box),
and seemed to be doing everything right. After several hours, I did
come across a "footnote" on the ColdBox site that stated the
inject="Model" should be used instead of type="Model".
I changed the cfproperty tag to the following, and magically, it
started working.
Question: Have I got it right, that with version 3.x, type="Model" no
longer works? If that is the case, definitely recommend this be
highlighted on the site, as it took me a LONG time to discover.
Yes, that is right, but for some reason I can’t get anything injected unless it’s in one of my Event Handlers. If I have another service layer CFC, it doesn’t seem to work for me.
That did change in CB 3 and its being noted for documentation. I
believe that the old code was supported up through Milestone 4 and
then starting with Milestone 5 the old code would no longer work. I
know that Luis is working on a lot of documentation revisions for CB 3
as it is a big release. There are some community tickets out there to
help with documentation and updating examples and what not. I'm going
to try and work on a couple this weekend and if anyone else has any
time, head on over to the Coldbox Community space on Assembla: http://coldbox.assembla.com/wiki/show/coldbox-community
That did change in CB 3 and its being noted for documentation. I believe
that
the old code was supported up through Milestone 4 and then starting with
Milestone 5 the old code would no longer work. I know that Luis is working
on a lot of documentation revisions for CB 3 as it is a big release. There