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

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

WBOY
Release: 2016-06-13 13:38:50
Original
814 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template