thinkphp 的url兼容模式问题

WBOY
Release: 2016-06-06 20:31:57
Original
1505 people have browsed it

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')

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!