What Happened To Myself
dskaggs edited this page Jan 9, 2013
·
2 revisions
Myself is a parameter available in the event that refers to the script name and event name parameter (index.cfm?event=). Myself was often used to build links in Model-Glue. In Model-Glue 3 the appropriate way to build links is through the event.linkTo() method.
For example:
<cfset handleForm = event.linkTo("User.Form") />
would yield the following:
[scriptname]?[eventvalue][eventname]
commonly: index.cfm?event=User.Form
It is important to note the linkTo() method is hooked into your application configuration, so if you change the event value or the script name, all links created with linkTo() will automatically be updated. No manual changes needed!