Hi there, I want to make certain modules/actions use certain routing rules....
for example, I have the following routing rules # REPORT RULES reports: url: /reports param: { module: reports, action: index } reports_module: url: /reports/:module param: { action: index } reports_actions: url: /reports/:module/:action/* # ADMIN RULES admin: url: /admin param: { module: admin, action: index } admin_module: url: /admin/:module param: { action: index } admin_actions: url: /admin/:module/:action/* As you can see, these rules are kinda the same so it always get fulfilled by the report set of rules I have the following modules: - vehicles - ferries etc and the problem I am having is finding a way to make certain modules like 'vehicles' always use the admin set of routing rules without having to change all my link_to() calls to something like link_to('create vehicle', '@admin_actions?module=vehicle&action=create) I want to be able to carry on using link_to('create vehicle', 'vehicle/ create') but for it to bypass the report rule set and use the admin rule set. This is the same for other modules.... So im thinking maybe doing a requirement in the routing.yml file and doing a regular expression that checks that the url module name contains certain words (module names) Is this the best way to attack it or am I missing something? Cheers Craig --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---