Zend Framework 2 - translating routes

前端 未结 3 1041
情书的邮戳
情书的邮戳 2021-01-01 05:50

I am wondering if it is possible to use translational tools for routes/uris in zf2. I want for example the route en.domain.tld/article/show/1 to translate for e

3条回答
  •  情书的邮戳
    2021-01-01 06:15

    There is a implementation already which you will find starting ZF 2.2.0. As far as i can tell there is no Documentation for this feature, however when looking at the unit tests you should be able to give this a shot:

    • ZendTest\Mvc\Router\Http\SegmentTest

    I'll try to get a working example setup sometime today, but can't make any promises - the test should get you started tho!

提交回复
热议问题