> I guess I meant it’s not a scan location nor has it been mapped. What is the proper convention for beans? model.beans?
The model folder is the default scan location for CFCs, but keep in mind it is not recursive. For insntance, if you have the file /model/foo/bar/user.cfc getModel(“user”) will not work. You will need to do getModel(“foo.bar.user”) since the injector first tries to find the package path relative to one of your scan locations.
HOWEVER, if the model isn’t found in a scan location, WireBox will look for it as a fully-resolvable path. This means that getModel(“model.foo.bar.user”) WILL work because WireBox will try the full path after it gives up on the scan locations. This also means that getModel(“random.non.scan.location.path.user”) will work so long as there is a mapping for “random” or “random” is in your web root.
~Brad