hi dan thanks for the reply
yes it is within the <event-handlers> tag and the included file is
also a valid xml file and path
the model glue file is as follows:
<modelglue>
<controllers>
<include template="/re_base_mg/config/Controllers/
MainController.xml" />
</controllers>
<event-handlers>
<include template="/re_base_mg/config/event_handlers/
MainControllerEventHandlers.xml" />
</event-handlers>
</modelglue>
the included file has the following code:
<event-handler name="page.index">
<broadcasts />
<results>
<result do="view.template" />
</results>
<views>
<include name="body" template="loginUI.cfm" />
</views>
</event-handler>
<event-handler name="view.template">
<broadcasts />
<results />
<views>
<include name="template"
template="template.cfm"/>
</views>
</event-handler>
<event-handler name="exception">
<broadcasts />
<views>
<include name="body"
template="dspException.cfm" />
</views>
</event-handler>
thanks for your help
On Sep 9, 8:16 pm, "Dan Wilson" <[EMAIL PROTECTED]> wrote:
> Are you sure /re_base_mg/config/event_handlers/
> MainControllerEventHandlers.xml is a syntactically valid file?
> Is it wrapped with <event-handlers>?
>
> If so, paste the main file and the included file in your next email.
>
> DW
>
>
>
> On Tue, Sep 9, 2008 at 3:11 PM, cs01rsw <[EMAIL PROTECTED]> wrote:
>
> > hi, i am trying to include one xml file into another can anyone tell
> > me what i am doing wrong please:
>
> > <event-handlers>
> > <include template="/re_base_mg/config/event_handlers/
> > MainControllerEventHandlers.xml" /> </event-handlers>
>
> > i am getting no errors but when i run the page it cannot find the
> > error handlers inside the MainControllerEventHandlers.xml file that i
> > am trying to include - indicating that it is not including the xml
> > file properly
>
> > the reason why i am doing this is that the model glue xml file will
> > obviously get huge unless i start seperating the xml files off. so is
> > this even the best way to do it? how do you guys do it?
>
> > thanks
>
> > richard
>
> --
> "Come to the edge, he said. They said: We are afraid. Come to the edge, he
> said. They came. He pushed them and they flew."
>
> Guillaume Apollinaire quotes
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---