Porting MG:U(2) Applications to MG:G (3)

If you are on CF8, you can use per-application mappings (Ex. this["mappings"]["/ModelGlue"] = "/path/to/MG3") to test out your apps in MG:G

  1. Change index.cfm to point to ModelGlue.gesture.ModelGlue
  2. Change the modelGlueConfiguration bean class to ModelGlue.gesture.configuration.ModelGlueConfiguration
  3. Change the modelGlueConfiguration bean id to modelglue.modelGlueConfiguration
  4. Add the helper mappings, if you want
    <property name="helperMappings"><value>/ModelGlue/helpers</value></property>
  5. Add the missingEvent event
    <property name="missingEvent"><value>page.missing</value></property>
  6. Add the generationEnabled property
    <property name="generationEnabled"><value>false</value></property>
  7. Change any ModelGlue.getBeanFactory() calls to ModelGlue.getBean().

    You can rename controllers, I guess, although there is some stuff in place that makes that, and perhaps editing index.cfm, um, not a necessity.

    If you are doing anything custom with the ViewRenderer, you'll probably have to change your code around a bit.

    Think that's it, mostly. If I come up with other stuff I'll add it.

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
BlogCFC was created by Raymond Camden. This blog is running version 5.9.3.000. Contact Blog Owner