In Agavi 1.1, you can also use glob patterns in XIncludes:

<xi:include href="%core.module_dir%/*/config/routing.xml" />

That might be an easier approach.

Just bear in mind that if you use an xpointer as well, the element referenced 
by that xpointer *must* exist - if not, an error will occur, and an 
<xi:fallback /> will be ignored by libxml (that's a bug in libxml).

David


On 24.01.2012, at 14:46, Marius Hein wrote:

> 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
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to