There will most likely be a better way to do this in MG3 but in MG2 I got
around this by running my own CS bean factory from my application.cfc. I
then pointed MG2 at this as the parent bean factory. It was to be a way to
share beans between sub applications but also came in very handy for model
access from outside the framework. E.G:
<cfset service = application.bf.getBean("service")>
I'm sure someone will have a better way to do this utilising something in
MG3 though.
In fact I have a feeling... Hmmmmm, think I did this recently. LOL.. I'll
check my codebase.
Ah yes, here is the way to get the BF from MG itself:
application._modelglue.getInternalBeanFactory()
:)
---
James Allen
E: [email protected]
Blog: http://jamesallen.name
Twitter: @CFJamesAllen (Coldfusion / Web development)
Twitter: @jamesallenuk (General)
Lead developer of http://errrrrrr.com
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Sir Rawlins
Sent: 20 January 2010 14:32
To: model-glue
Subject: [Model-Glue] Access to ColdSpring beans from within helpers?
Hello Guys,
I need access to beans configured in ColdSpring from within my MG 'helpers'
methods, is CS available in any way? what would be your suggestions.
Thanks,
Rob
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en