douzui6173
2014-03-30 05:53
浏览 30
已采纳

如何在ZF1路由中使用多个参数

i was trying to add new routes to my Zend Framework 1 application. But it seems to understand my 2 params as one. How can i fix that?

$route = new Zend_Controller_Router_Route(':name-:type', array('controller' => 'tour', 'action' => 'index'));
$route = $routeLang->chain($route);
$router->addRoute('tour', $route);
  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题