access a plugin at the model level

Perhaps this is the wrong thing to do. I am needing to build a
queryset that consists of a default value and a query set.

Wanted to use the queryHelp plugin in the model level instead of the
handler level.

Not sure how to access. If this is bad form, though, open to comment
on better practice and why.

thanks
Kevin

If you use coldbox model integration, you could inject the plugin into the model using something like:

<cfproperty name="QueryHelper" type="coldbox:plugin:QueryHelper" scope="instance">

More about model integration in the link below. Once you start using it, it’s really easy to inject almost anything you need into the model using the dependencies DSL.

http://ortus.svnrepository.com/coldbox/trac.cgi/wiki/cbModelGuide

  • Gabriel

Thanks. Gabriel. Just what I needed.

Kevin