【发布时间】:2013-05-25 19:25:36
【问题描述】:
我正在使用 codeigniter 重新路由来清理一些 url。 我知道我可以做到
$route['product/(:num)'] = "catalog/product_lookup_by_id/$1";
但在某些情况下,我必须向重定向 url 添加一些额外的参数,以便我将它们作为方法的参数。例如
$route['product_unique_and_rare'] = "catalog/product_lookup_by_id/{HERE I WANT SOME ADDITIONAL EXTRA PARAM}";
如何做到这一点,以便我获得方法参数中的值,而不是 uri->resegment 中的值
【问题讨论】:
标签: php routes codeigniter-2 codeigniter-url