1
我使用下面的路由规则在我笨项目的routes.php文件文件:笨URI路由可变编码
$route['manage/(:any)'] = "manage/item_lookup/$1";
这个东西重定向URL中的管理对item_lookup功能作为一个变量之后。后管理位的一切都是从数据库中这是一个文本字符串,然后urlencoded的即
the page "some page title" becomes "manage/some+page+title"
但是通过笨传递给item_lookup函数的变量是“some_page_title”。空格被编码为下划线而不是加号。
有没有办法强制php将urlencode空格强调为下划线或告诉codeigniter使用加号?
谢谢,Diarmuid。