Hi Kevin, The Model-Glue application template includes a RemotingService.cfc file that you can drop into your application, and there is a line in this file which sets the "template" variable that you are missing. In case you don't happen to have the application template handy, I've pasted a copy of RemotingService.cfc here:
http://modelglue.pastebin.com/m5b2a310d Note that you will need to change line 6: <cfset template = "/modelglueapplicationtemplate/index.cfm" /> This path needs to resolve to your application's index.cfm file, so for example, if you are hitting the app at http://localhost/myapp/index.cfm, then this line should be: <cfset template = "/myapp/index.cfm" /> That should get you up and running, but be sure to report back if you encounter further problems. -- Ezra Parker On Wed, Feb 3, 2010 at 8:41 PM, Kevin Penny <[email protected]> wrote: > I'm a bit new to mg, but have been building an app that we now wanna > take advantage of the AbstractRemotingService.cfc. I've done remoting > via ColdSpring in the past which I really like but this was the path > we've chosen for now. > > So I create my RemoteService.cfc in the application root directory and > Extend the ModelGlue.gesture.remoting.AbstractRemotingService > component and that's pretty much all I have to do right? > > When I execute a call to it via URL at say mydomain.com/ > RemotingService.cfc?method=executeEvent&eventname=goal.metertest I get > the following error: > > > Variable TEMPLATE is undefined. > > The error occurred in D:\www\xyz\classes\frameworks\ModelGlue_3\gesture > \remoting\AbstractRemotingService.cfc: line 11 > > 9 : <cfset request._modelglue.bootstrap.blockEvent = 1 /> > 10 : > 11 : <cfmodule template="#template#" /> > > And following the call from the AbstractRemotingService executeEvent() > method it calls getModelGlue() - which looks for some 'template' > variable which I have no idea where that would come from. > > Any help? > > I'd love to try this out before I scamper back to using CS to expose > things. > > Thanks > > -- > 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 > -- 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
