Skip navigation.

Organizing ModelGlue Events

|

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>