Yeah I have something similar, I'm not very happy with it but it works for
now.
<bean id="site" class="beans.Site" singleton="false">
<property name="name"><value>Site Name</value></property>
<property name="DSN"><value>Datasource name</value></property>
<property name="path"><value>Absolute path</value></property>
<property name="clientURL"><value>url for the client
interface</value></property>
<property name="adminURL"><value>url for the admin
interface</value></property>
</bean>
Then this can be referenced in your controllers manually or inject it
<cfscript>
// Manual reference to site configuration
var site = GetModelGlue().GetBean("site");
// To access a property just call the method
var siteName = site.getName();
// send it back to the viewstate
Arguments.event.setValue('siteName', siteName);
</cfscript>
Hopefully that's what you were looking for.
- Roy
--^----------------------------------------------------------------
This email was sent to:
lists@...
EASY UNSUBSCRIBE click here:
http://topica.com/u/?b1drHn.bSZygJ.bGlzdHNAOr send an email to:
modelglue-unsubscribe@...
For Topica's complete suite of email marketing solutions visit:
http://www.topica.com/?p=TEXFOOTER--^----------------------------------------------------------------