Err looks like doEvent is not part of FW/1, it's just part of the mura wrapper around it. Looks like they just call application.onRequest. I think I can do that too :-)
On 11 April 2011 12:00, Andrew <[email protected]> wrote: > Next question :) > > To create a display object in mura I think I need to be able to call > the event programatically (is this correct)? > > I notice some rather lively debate here previously about whether or > not this can be done: > http://groups.google.com/group/model-glue/browse_thread/thread/44af85ea96c4088/1afad69e8ad02903?lnk=gst > > I think I'm looking for something like FW/1's "doEvent()" method. > Does MG have a hook like this, or is it not possible? As messy as it > sounds, is remoting maybe a way to do this? > > On Apr 11, 10:49 am, Andrew Myers <[email protected]> wrote: >> Today's installment :) >> >> I've found I can wire in the Mura stuff using the same method that >> Grant Shepert used in his FW/1 demo. >> >> I'm trying to get the mura scope ($) accessible from my controllers >> and views, and here's what I've come up with, and that is to put it >> into url scope so it persists (I tried request but it seems to have >> been lost by the time it hits the controller). So I do something like >> this: >> >> <cffunction name="onRequestStart" returnType="boolean" output="false"> >> <cfargument name="thePage" type="string" required="true"> >> <cfinclude template="../../config/settings.cfm"> >> <cfinclude template="plugin/config.cfm" /> >> <cfset url.$ = variables.$> >> <cfreturn true> >> </cffunction> >> >> Then in my controller and views I can get to the mura scope by using >> event.getValue('$'). >> >> Is there any problem with using url scope like this? Or is there a >> better place to put it? I works but it does "feel" right to me. :) >> >> Andrew. >> >> On 10 April 2011 22:42, Andrew Myers <[email protected]> wrote: >> >> >> >> >> >> >> >> > Well, I think I've gotten around that one by just calling it >> > plugins.muramg.controller.Controller. I guess the name is unique to >> > the plugin. >> >> > Made some good progress anyway - also getting the mura scope passed around >> > now. >> >> > On 8 April 2011 16:42, Andrew Myers <[email protected]> wrote: >> >> Hi Doug & Rich, >> >> >> I decided it'd be a good learning experience for me to try and have a >> >> go at this myself. I tend to learn more that way than when I'm >> >> presented with a completed example anyway. However I wouldn't mind a >> >> hint or two, if you can please spare a moment ;-) >> >> >> The first issue I've hit is that in my ModelGlue.xml I have something >> >> like this: >> >> >> <controller id="Controller" type="muramg.controller.Controller"> >> >> >> However when the plugin is installed it goes into the plugins dir, so >> >> I get an error along the lines of: >> >> >> Could not find the ColdFusion component or interface >> >> muramg.controller.Controller. >> >> >> I could create a mapping, but I don't really want that to have to be >> >> part of the plugin install process. In one of Grant Shepert's >> >> examples I notice he creates the fw1 object like this: >> >> >> <cfset var fw1 = >> >> createObject("component","#pluginConfig.getPackage()#.Application") /> >> >> >> Is there any way to set the controller's package dynamically in MG? >> >> >> Andrew. >> >> >> On 31 March 2011 07:47, Doug Hughes <[email protected]> wrote: >> >>> I have one prepared.... I just haven't had the time to get it wrapped up >> >>> nicely. >> >>> Doug Hughes, President >> >>> Alagad Inc. >> >>> [email protected] >> >>> 888 Alagad4 (x300) >> >>> Direct: 651 Alagad4 (651-252-4234) >> >>> Fax: 888-248-7836 >> >> >>> Follow Alagad on Twitter: @AlagadInc >> >>> Follow Doug @DougHughes and @DougsIdeas >> >>> Fan Alagad on Facebook:http://www.facebook.com/pages/Alagad/214035749318 >> >> >>> On Wed, Mar 30, 2011 at 3:32 PM, Rich <[email protected]> wrote: >> >> >>>> Andrew- >> >>>> As soon as I get my code done I'll let you know. I've actually got >> >>>> several >> >>>> apps that I plan to wrap into a plugin and integrate into Mura, so as >> >>>> soon >> >>>> as I get time (?) I'll send on what I've got. >> >>>> Thanks, >> >>>> Rich >> >> >>>> On 3/29/11 4:39 PM, Andrew Myers wrote: >> >> >>>> Thanks for the follow-up Rich. I've been playing with FW/1 a bit (and >> >>>> I do like it), but I have quite a bit invested in Model-Glue already >> >>>> and am pretty keen to get MG and Mura working together. I'll check >> >>>> out the links. >> >> >>>> If you're in a position to share what you're doing it might be good to >> >>>> compare notes as we go? >> >> >>>> Andrew. >> >> >>>> On 30 March 2011 00:00, Rich <[email protected]> wrote: >> >> >>>> Andrew- >> >> >>>> I'm actually working on one as we speak and also found a blog posting on >> >>>> integrating a non-front end controller app into Mura: >> >> >>>>http://www.getmura.com/blog/integrating-an-application-without-a-fron... >> >>>> Check withwww.grantshepert.comapparently he's Mr. Mura Plugin ;-) >> >> >>>> Rich >> >> >>>> On 3/28/11 8:54 PM, Andrew wrote: >> >> >>>> Hi, >> >> >>>> I am wondering if anyone has an example of using model-glue to create >> >>>> a plugin for Mura CMS? >> >> >>>> Andrew. >> >> >>>> -- >> >>>> 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 >> >> >>> -- >> >>> 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 -- 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
