我是Cakephp新手。
我有一个主页,有很多像/mark-james.hmtl,/steve-pain.html,等等的链接。
我想在用户点击姓名后显示个人主页,如何重写?显然,现在我有了:Error: mark-james.hmtlController could not be found。
发布于 2014-07-30 02:35:58
Router::connect(
'/user1-home-page',
array('controller' => 'users', 'action' => 'user1')
);http://book.cakephp.org/2.0/en/development/routing.html
您可以如上所述定义路由。
https://stackoverflow.com/questions/25022075
复制相似问题