Cakephp 3用语言路由

时间:2016-04-13 07:58:23

标签: php cakephp routing cakephp-3.0 cakedc

我有以下网址:
一个)

  • www.example.com/en/pages/index

  • www.example.com/fr/pages/index

b)中

  • www.example.com/en/users/users/profile(使用CakeDC /用户)
  • www.example.com/fr/users/users/profile(使用CakeDC /用户)

对于a),我如何使用$ this-> Url-> Build()函数来创建这样的链接?
对于b),我如何将这两个链接转换为如下格式:

  • www.example.com/en/profile
  • www.example.com/fr/profile

0 个答案:

没有答案
相关问题