Rob,
You can get your framework object ( and thus return the same object
that "getModelGlue()" returns in the controllers) through one of two
methods:
1) Pass it in as a constructor argument through Coldspring (see my
previous reply to one of your posts)
2) The framework is scoped in the application at
application.yourapplicationkey.framework
Once the framework is passed into your component and is in the
variables scope you can use it just like "getModelGlue()":
<cfset variables.reactor = variables.framework.getORMService()/>
or
<cfset myBean = variables.framework.getBean("myBean")/>
HTH,
Jon
On Mar 1, 2007, at 3:57 AM, Robert Rawlins wrote:
> Hello Guys,
>
> Having a bit of an issue with obtaining access to ColdSpring and
> Reactor from my model layout in MG using the getModelGlue().getBean
> () method. I've been using this in my controller to instantiate a
> bean and it works perfectly, however when I place it in any of the
> CFC's in my model layer I get the error 'Variable getModelGlue is
> undefined' thrown back at me.
>
> Do I access this stuff differently from my model layer?
>
> Thanks chaps, Rob
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2
Build sales & marketing dashboard RIAâs for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271120
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4