Helpful Mach-II Hints
ColdFusion
Some helpful hints for getting started with Mach-II.
(The event handler/page-views for basic page displays are pretty straight forward, but if that isn't clear to you yet, check out the documentation on the Mach-II site.)
For a more in depth write-up on Listeners (with an example) check out Matt Woodward's post http://mattwoodward.com/blog/index.cfm?CommentID=214
(The event handler/page-views for basic page displays are pretty straight forward, but if that isn't clear to you yet, check out the documentation on the Mach-II site.)
- All FORM and URL scope variables are available within the Event object. They can be called using event.getArg("variablename") Note: this effectively puts these variables in the same scope, so either avoid duplicate naming or use the parameterPrecedence property in the XML config file.
- When building any components within the framework (Listeners, Plugins,Filters) be sure to include the appropriate information that identifies it in the <cfcomponent...> tag.
- Listeners : extends="MachII.framework.Listener"
- Plugins: extends="MachII.framework.Plugin"
- Filters: extends="MachII.framework.EventFilter"
- The configure function notifies Mach-II to load that Listener/Plugin/Filter method into RAM, making it available to the application. NOTE: Once you set the Mach-II reload setting to "never" (ie Production mode) this configure method will not be called again until the application has timed out... Place any plugin methods you want to run on each request in the PreEvent() method.
For a more in depth write-up on Listeners (with an example) check out Matt Woodward's post http://mattwoodward.com/blog/index.cfm?CommentID=214




Loading....