Home  >  Article  >  Backend Development  >  thinkphp 的url兼容模式问题

thinkphp 的url兼容模式问题

WBOY
WBOYOriginal
2016-06-06 20:31:571500browse

url是这样的http://192.168.6.227/index.php?s=Admin/Api/loginVerify/a/b,我在action里边要获取参数a,用这种方式$_REQUEST['a'] 获取不到,请问是怎么回事

回复内容:

url是这样的http://192.168.6.227/index.php?s=Admin/Api/loginVerify/a/b,我在action里边要获取参数a,用这种方式$_REQUEST['a'] 获取不到,请问是怎么回事

m、c、a三个参数分别代表模块、控制器和action,所以传递的其他参数名称不要用这几个

I('get.a')

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