Thanks Chris, that makes alot of sense, i will give this a go and get back if i am still having problems.
i must say i am amazed at the speed you guys respond!!! thanks again richard On Sep 9, 8:47 pm, "Chris Peterson" <[EMAIL PROTECTED]> wrote: > The included files have to be valid all by themselves, for example: > > This is my ModelGlue.xml file: http://pastebin.com/d32675626 > And this is one of my event-handler files: http://pastebin.com/d546d9990 > here is a controller file: http://pastebin.com/d74a06395 > > See if those help you! afaik, you Do need the empty <event-handlers /> > block, even if you have no event-handlers in that particular file. > > Chris Peterson > > > > On Tue, Sep 9, 2008 at 3:36 PM, cs01rsw <[EMAIL PROTECTED]> wrote: > > > 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 > > -- > Hey! I dont tell you how to tell me what to do, so dont tell me how to do > what you tell me to do! ~ Bender (Futurama) --~--~---------~--~----~------------~-------~--~----~ 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 . -~----------~----~----~----~------~----~------~--~---
