日期:2014-05-17  浏览次数:20414 次

cakephp框架的参数传递问题
cakephp框架中,URL 样式的默认路由为: 
  http://example.com/controller/action/param1/param2
参数是顺序传递的。
  当然也可以设置为命名参数:
  http://example.com/controller/action/param1:value/param2:value
  现在我想实现这样的URL:
 http://example.com/controller/action?param1=value&param2=value
  应该如何设置?

------解决方案--------------------
参考下面的内容:
http://book.cakephp.org/cn/view/46/Routes-Configuration