This is a quick tip for today. In all views you will probably be linking to other events, now of course you could write something like:
But what happens if you change the event key to something else (you can do that in the ModelGlue configuration section in the ColdSpring.xml file, see the property for “eventValue”) such as “go” or “action”? You would have to change every view.
A simple way round this is to put at the top of each view the following:
<cfset myself = ViewState.getValue('myself')>
And then change your links to:
What do you think?
Tweet
comments powered by Disqus