If I do this in my controller it works, But Im sure this is not how
the framework was intended to be used.
<cfset variables.config =
createobject('component','modelglue.bean.BeanFactory').init('/CSTEST/config/beans').createBean('Config.xml')
/>
On 5/5/06, Brian Billings <[EMAIL PROTECTED]> wrote:
I guess where I am lost is that this bean never really existed
anywhere. It was created on the fly by modelglue.. I would just put
the XML file in the folder and I could call it.
Are you suggesting that I actually make a bean, with getters and
setters and define it in the ColdSpring bean definitions?
I actually kinda liked the the fact that model glue did all of that
for me, since these values really werent part of my model, just my web
server folder and dsn configuration.
On 5/5/06, Dave Ross <[EMAIL PROTECTED]> wrote:
>
> If the bean you want has an id of "Config", then you would use
> getModelGlue().getConfigBean("Config")
>
> ChiliBeans was one bean per xml file. ColdSpring is many beans per xml file.
>
> On 5/5/06, Brian Billings <[EMAIL PROTECTED]> wrote:
> > All,
> >
> > In order to set up coldspring I had to make my bean mapping map to the
> > CS xml file like below:
> >
> > <setting name="beanMappings"
> value="/CSTEST/config/beans/CSTest.xml" />
> >
> > Before I only had it set to /CSTEST/config/beans and I was able to use
> > getModelGlue().getConfigBean(" Config.xml") in my controller for a
> > file name Config.xml that resided in the "beans" directory.
> >
> > Now that I implemented coldspring
> > getModelGlue().getConfigBean("Config.xml") does not work. How should
> > I manage that config data now?
> >
> >
>
>