I usually use my own route classes for that purpose.
You can even go as far as to prepend /:sf_culture to every route, if
that helps you.
class ProjectRoute
{
public function __construct($pattern, array $defaults = array(),
array $requirements = array(), array $options = array())
{
$pattern = '/:sf_culture'.$pattern;
$requirements['sf_culture'] = '(fr|en)';
parent::__construct($pattern, $defaults, $requirements, $options);
}
}
rule1:
url: /page
class: ProjectRoute
param: { module: default, action: page }
rule2:
url: /page2
class: ProjectRoute
param: { module: default, action: page2 }
Bernhard
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---