There is this app we are running in parallel prior to moving it from external server to our internal servers. It is a two part application: the public/unsecured part (directory A) and the secured part (directory B). It's all wired up in Model-Glue/Coldspring.
As part of the User Registration process, there is a redirect from Directory A to B. This however, is generating an error: "Model-Glue: There is no known event handler for '/path/to/Direcory B/x.cfm'."
Here is the ModelGlue snippet:
<event-handler name="do.emailUser">
<broadcasts>
<message name="emailRegisterAction" />
</broadcasts>
<results>
<result do="/path/to/directory B/x.cfm" redirect="true" />
</results>
<views />
</event-handler>
I have tried copying the shared file to Directory A, but that isn't a DRY solution, and seems like a hack. Perhaps, I should point out that the code works in Production on external servers, but fails in our development environment.
Any help will be appreciated. Thanks
An old thread, may be it will help someone in future.
Things to remember.
<result>
expects three attributes.name
:Supposed to be the result name which you set from your controller.do
: The event which needs to executed when the result with thisname
is created.redirect
: Condition saying whether to redirect or not to.So based on these conditions. Ideally your
<event-handler>
should look something like this.Once you set
<cfset arguments.event.addResult("goToX")>
in theemailRegisterAction
function, then the page will redirect to thedo.eventToXFile
event, which in turn executesx.cfm
.