RE: [coldbox:13679] Help needed with referencing external models

This is the wrong injection syntax:

property name=“GlobalUser” type=“model” scope=“instance”;

Should be

property name=“GlobalUser” inject=“model” scope=“instance”;

Also, how are you creating the instance of your user CFC? You need to be getting it via the framework, and not createObject() or it will not be injected with its dependencies.

Thanks!

~Brad

Hi Brad,

Problem fixed! I was indeed the wrong syntax for the property tag. Everything works like a charm now.

Thanks again for all your help.

Gary