> Including the index.cfm file onRequest is a neat trick to avoid having index.cfm be in the webroot, BTW
I think you still need index.cfm in the webroot, otherwise your webserver has no default cfml document to hit and hence will never be able to invoke the Application.cfc Chris 2008/11/14 denstar <[EMAIL PROTECTED]> > > Using Application.cfc works fine for me with MG 2 & 3. > > I use per-app mappings, and like Jared says, it works a treat. I have > 2 and 3 running side by side, so to speak, with no issues. > > I think the Gesture skeleton app should do away with Application.cfm, > personally. > > Including the index.cfm file onRequest is a neat trick to avoid having > index.cfm be in the webroot, BTW. Leaves you with just > Application.cfc and the rest of the "icing" (images, css, javascript, > pdfs or whatever) in the webroot. Haven't needed it for anything > besides that tho (the per-app mapping works just the way you'd expect > it to, replacing the "global" mapping). > > The nice thing about Applicaiton.cfc (well another nice thing) is that > you can use the onError function to capture non-MG-related errors, > that MG's own error trapping cannot catch. I haven't done some spiffy > way of using the same dspException.cfm page, but I could, and then, > hey, that would be even nicer, neh? Maybe... hmm... would have to be > done right, but anyways, I'm digressing. > > All my MG sites (2 and 3) use Application.cfc, with no ill effects, to > sum it up there. :-) > > :Den > > -- > Quality is not an act, it is a habit. > Aristotle > > On Thu, Nov 13, 2008 at 11:13 AM, Jared Rypka-Hauer wrote: > > Everett, > > You can use Application.cfc's onRequest() function to always <cfinclude > > template="./index.cfm" />, which will then include modelglue.cfm and your > > request will run just fine. > > Doug, > > Are you saying there are issues with per-app mappings in general, or just > > with MG apps? The only issue I've ever seen people have is the confusion > > over what the key names have to be in this.mappings. We're using per-app > > mappings on one of our projects and everything's working just fine... > just > > use this kind of syntax: > > <cfset this.mappings["/modelglue"] = "/path/to/ModelGlue"> > > Works awesome and it does in fact override mappings set at the server > level. > > J > > > > --~--~---------~--~----~------------~-------~--~----~ 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 For more about Model-Glue, check http://www.model-glue.com . -~----------~----~----~----~------~----~------~--~---
