Changes between Initial Version and Version 1 of FAQs/WhatHappenedToMyself

Show
Ignore:
Timestamp:
12/21/09 17:36:26 (16 years ago)
Author:
cfgrok (IP: 64.30.223.5)
Comment:

Added new FAQ page

Legend:

Unmodified
Added
Removed
Modified
  • FAQs/WhatHappenedToMyself

    v1 v1  
     1== What Happened to Myself? == 
     2 
     3Myself 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.  
     4 
     5For example: 
     6 
     7{{{ 
     8<cfset handleForm = event.linkTo("User.Form") /> 
     9}}} 
     10 
     11would yield the following: 
     12 
     13[scriptname]?[eventvalue][eventname][[BR]] 
     14commonly: index.cfm?event=User.Form 
     15 
     16It 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!