php - How to get get parameters after CI framework rewrites routing???
天蓬老师
天蓬老师 2017-05-27 17:42:01
0
1
557

Using CI 3.1.2 version
I want to rewrite the URL http://waimao.test.com/web/ho... to http://waimao.test.com/goods/64 ,
Added the following rules under application/config/routes.php:
$route['goods/(:any)'] = '/web/home/product_detail/?pid=$1';
The controller can jump normally, but $_GET cannot get the value. What is the problem????

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
某草草

Why do we need to add a slash?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template