使用命名的arg路由跟踪的默认URL

时间:2013-02-22 17:22:20

标签: cakephp routes named-parameters

我想知道如果在命名的arg跟踪url时如何正确路由默认控制器/操作。

I.E。:我想将http://www.server.com/mode:full路由到http://www.server.com/users/index/mode:full

我试过了Router::connect ('/:mode', array('controller'=> 'users', 'action'=> 'index'));,但它没有用......

1 个答案:

答案 0 :(得分:0)

很抱歉,看起来它与CakePHP无关。 事实上,这是Windows上的Apache,它将':'识别为逻辑驱动器,因此根本不会路由正确的(至少是预期的)URL。

相关问题