Have you had a look at the MG documentation? I'd start here:
http://docs.model-glue.com/wiki/HowTos/ApplicationCFCIntegration#Application.cfcIntegrationwithModel-Glue3 On Fri, Jan 14, 2011 at 8:22 AM, marc <[email protected]> wrote: > Hi, > > I have been working a bit with Model-Glue now (Gesture) and realized > there are no implicit events (OnRequestStart, OnRequestEnd, > onSessionStart etc) defined in the MG frameWork. I want some events to > happen on applicationStart, some on sessionStart. I could of course > start coding in Application.cfc but rather keep that code in > controllers/services etc. I remember that in Coldbox these events > could be defined in the controller. Should I assume they just fire and > register them in ModelGlue.xml - so I get something like this: > > <controller name="applicationController" > type="application.controller.controller"> > <message-listener > message="ModelGlue.onApplicationStart" > function="onApplicationStart" " /> > <message-listener message="ModelGlue.onSessionStart" > function="onSessionStart/> > <message-listener message="ModelGlue.onRequestStart" > function="onRequestStart/> > <message-listener message="ModelGlue.onRequestEnd" > function="onRequestEnd" /> > <message-listener message="ModelGlue.onsessionEnd" > function="onsessionEnd" /> > <message-listener > message="ModelGlue.onApplicationEnd" > function="onApplicationEnd" " /> > </controller> > > and define the corresponding events in the controller? > > Marc > > -- > 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 > -- Todd Sharp Sharp Interactive, LLC http://slidesix.com -- Multimedia Enabled Presentation Sharing IM: [email protected] Blog: http://cfsilence.com Twitter: cfsilence | slidesix -- 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
