Cakephp路由不能满足我的需要吗?

时间:2016-09-21 11:31:09

标签: cakephp-3.0

我的网址是:

http://localhost/rehabhousing/homes/articles/3/terms-conditions

现在我们路由我的网址

http://localhost/rehabhousing/terms-conditions

但是url是create dynamicall

1 个答案:

答案 0 :(得分:0)

最后我能做到

$routes->connect('/terms-conditions/*', ['controller' => 'Homes','action' => 'articles',3,'terms-conditions']);