I'm getting this error in a Bean I'm trying to use:
Message Variable GETPLUGIN is undefined.
It works fine in my handlers, and I think I know why its not working
but my the fix I've tried hasn't worked out. Here is my CFC. This is
my first try with script CFCs, so if you see anything wrong, kindly
let me know.
public array function validate() {
var validator = instance.validator;
}
By autowiring with coldbox:plugin:Validator you are placing the
validator plugin into the instance scope, do no need for getPlugin and
yes, it doesn't' exist.
Hope that helps you out. You don't need lightwire or Coldspring for
this type of injection.
Note if you're are running Coldbox 3.0 autowireing via inject instead of
type is preferred.