The beans scope is only to be used inside your Model Glue controllers. This is basically a mechanism for Model Glue to get stuff out of ColdSpring for you and make it available in your controllers.
Working inside of your model is not a concern for Model Glue. Model Glue does not come in to play here. You need to look at how ColdSpring works. Your questions are more about how to use ColdSpring to define your model. Here is the site for ColdSpring: http://www.coldspringframework.org/ The quick start guide will get you up and running quickly: http://www.coldspringframework.org/coldspring/examples/quickstart/ There are a number of presentations on UGTV showing how to work with ColdSpring in greater depth: http://www.carehart.org/ugtv/list.cfm?search=coldspring Any of those, (Except the ColdSpring 2.0 one because it isn't out yet) will do you right. DW On Fri, Jan 28, 2011 at 10:38 AM, Nathan Stanford II <[email protected]>wrote: > Ok, I am still having a little trouble. In my model definition I add > the layout bean to the beans scope: > > <cfcomponent displayname="layoutGateway" hint="I handle the layout > data" beans="layout"> > > I then tried to call it like this: > > <cfset obj = beans.layout /> > > But it says that the beans scope is not defined. Do these not get > defined in the model? If not how do I get a bean in the model? Sorry > still trying to get my head around it. > > Thanks, > > Nathan Stanford II > > -- > 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]<model-glue%[email protected]> > For more options, visit this group at > http://groups.google.com/group/model-glue?hl=en > -- Plutarch - "The mind is not a vessel to be filled but a fire to be kindled." -- 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
