Hi Marius,
thanks for your help. I´ve tried to implement the
AppKitXIncludeConfigHandler in our Agavi Application.
It gets the module based routing.xml('s) and generates XInclude nodes. I´ve
logged that.
But finally Agavi doesn´t include the routing.xml files in the compiled
config. Just the routing.xml in the application scope.
I doesn´t use the AppKitRoutingConfigHandler and all Namespaces are left
default (http://agavi.org/agavi/config/...).
Any hints where´s the fault?
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im
Auftrag von Marius Hein
Gesendet: Dienstag, 24. Januar 2012 14:47
An: Agavi Users Mailing List
Betreff: Re: [Agavi-Users] How to tell Agavi to use routing.xml defined in
Modules?
Hi.
>
> I saw that Icinga handles routing in splitted routing.xml files. Each
> module has it´s own routing.xml file.
>
> How do I tell agavi to read these files? I looked at the src of
> Incinga, but can´t get it. Could someone tell me, where I have to look?
>
This was made through by an additional global configuration handler. You
can see the intercepting code in app/config/config_handlers.xml.
The new one iterates over all modules, reads the
'module.<name>.agavi.include.routing' setting and creates XInclude nodes
for all files specified there into existing target node.
After that the default routing handler doing its work.
You can dig into the following files for more information:
app/config/config_handlers.xml
app/config/routing.xml
app/modules/AppKit/config/module.xml
app/modules/AppKit/config/routing.xml
app/modules/AppKit/lib/config/AppKitXIncludeConfigHandler.class.php
Hope this helps clear up things a bit.
Kind regards,
Marius.
--
http://www.itsocks.de - Deep in their roots all flowers keep the light.
PGP: 0x53FA79D0 (https://users.itsocks.de/~mhein/pgp/mhein.asc)
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users