search

Home  >  Q&A  >  body text

php - How to get get parameters after CI framework rewrites routing???

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????

天蓬老师天蓬老师2743 days ago556

reply all(1)I'll reply

  • 某草草

    某草草2017-05-27 17:44:01

    Why do we need to add a slash?

    reply
    0
  • Cancelreply