Organizing ModelGlue Events
Submitted by Doug Sims on Tue, 2006-07-18 21:31.
coldfusion | modelglue
This may be old news, but did everyone know you can include ModelGlue.xml file within your main modelglue.xml files. The framework has provided an tag within the modelglue config file. you can include as many XML files as you need as long as they are formatted correctly.
The include tag goes after the opening <modelglue> tag and before the first <controller> tag
then you can group the event handlers into multiple files to keep them organized in a logical way.
example:
<modelglue>
<include template="/config/UserEvents.xml" />
<include template="/config/AdminEvents.xml" />
<controllers>» Doug Sims's blog | login or register to post comments | email this page |
delicious |
digg |
reddit |
technorati
delicious |
digg |
reddit |
technorati
