Hey Tim,
Responses in line.
> I have a question on how sub applications work in Model Glue. I can't
> really seem to find any concrete examples of how to set up an application.
It's not really "subapplications," more like "shared applications."
Basically, their application.cfm's just need to state the same
application name, and in their index.cfm files, you need to instruct
model glue _not_ to put itself in a specific application variable:
/members/Application.cfm:
<cfset ModelGlue_APP_KEY = "members" />
/members/canvaswikie/Application.cfm:
<cfset ModelGlue_APP_KEY = "membersWiki" />
...and so on.
> Can an event handler result in the library model-glue.xml file point
> a user to an event in the parent members model-glue.xml file?
No. Unfortunately, you have to <cflocation /> in your controller.
<result> _is_ getting a doUrl attribute in MG3 (implicitly forcing
redirect=true):
<!-- In the wiki app: -->
<result name="user.notLoggedIn" doUrl="/members/?event=user.login" />
> Should I have
> one uber mg.xml file or handle it with includes? Also if I use includes in
> a model-glue.xml file, does an event in mg1.xml know about an event in
> mg2.xml?
I've found building an app out of modules (using includes) much better
in this situation, avoiding everything listed above. It lets you
"join on" child apps as necessary, and it allows things like <result /
> tags redirecting to event-handlers in the main application.
-Joe