Zend翻译了路线

cos*_*sta 7 php zend-framework

我有不同的语言环境的多个路由:

例:

路线为/ de

$routes['industry'] = array(
    'route' => 'branche/:type',
    'defaults' => array(
        'module' => 'default',
        'controller' => 'index',
        'action' => 'branche',
        'type' => 'automobil'
    ),
    'reqs' => array(
        'type' => '(automobil|textil)'
    )
);
Run Code Online (Sandbox Code Playgroud)

路线为/ en

$routes['industry'] = array(
    'route' => 'industry/:type',
    'defaults' => array(
        'module' => 'default',
        'controller' => 'index',
        'action' => 'branche',
        'type' => 'car'
    ),
    'reqs' => array(
        'type' => '(car|textile)'
    )
);
Run Code Online (Sandbox Code Playgroud)

在这种情况下,它可能以某种方式只有一条路线而不是2条路线?

注意不仅是更改的路由,还有reqs上的类型和默认类型.