Home  >  Article  >  Backend Development  >  cakephp框架的参数传递有关问题

cakephp框架的参数传递有关问题

WBOY
WBOYOriginal
2016-06-13 13:38:50774browse

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¶m2=value
  应该如何设置?

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn