CAKEPHP3路由语言

CAKEPHP3路由语言,php,cakephp,routing,cakephp-3.0,cakedc,Php,Cakephp,Routing,Cakephp 3.0,Cakedc,我有以下网址: (a) www.example.com/en/pages/index www.example.com/fr/pages/index (b) www.example.com/en/users/users/profile(使用CakeDC/users) www.example.com/fr/users/users/profile(使用CakeDC/users) 对于a),如何使用$this->Url->Build()函数创建这样的链接? 对于b),如何将这两个链接转换为以下格

我有以下网址:
(a)

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

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

(b)

  • www.example.com/en/users/users/profile(使用CakeDC/users)
  • www.example.com/fr/users/users/profile(使用CakeDC/users)
对于a),如何使用$this->Url->Build()函数创建这样的链接?
对于b),如何将这两个链接转换为以下格式:

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

我想这就回答了你的问题:)对于b)情况,它不起作用。