Kiril Angov wrote: > Allan, > > You can create a file config/config_handlers.yml in every application > you want to share routes. In that file you put: > > config/routing.yml: > class: myCustomRoutingConfigHandler > > and then you need to implement that myCustomRoutingConfigHandler by > looking at sfRoutingConfigHandler. You can put logic to read not only > the config/routing.yml but also a file in your project config file and > merge the routes from the two.
That's a good idea - you could assign 'hostname' as a routing variable that way too - and do logic based on matching hostnames perhaps... Please post back here if you get it working, I've wanted this for a while :) Personally, I have just stopped using separate applications, the separation between them just gets in the way - and I see no advantage in the doing it, I just use the permission system to limit access within one application. I have modules such as 'admin_news', and then routing rules to make the URLs a little prettier. -- Ian P. Christian ~ pookey.co.uk --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" 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/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
