kevinm
August 10, 2009, 1:47am
1
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
Dorioo
August 10, 2009, 2:09am
2
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
kevinm
August 10, 2009, 2:40pm
3
Thanks. Gabriel. Just what I needed.
Kevin