开发者

Codeigniter allow accented letters in URL

开发者 https://www.devze.com 2023-03-10 19:23 出处:网络
So you have this preference in CodeIgniter: $config[\'permitted_uri_chars\'] = \'a-z 0-9~%.:_\\-\'; How do you change this so that é, à, è, ç etc. are allowed? I need this for my开发者_Go百科 s

So you have this preference in CodeIgniter:

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';

How do you change this so that é, à, è, ç etc. are allowed? I need this for my开发者_Go百科 search url's.


Add any characters you want to use in your permitted_uri_chars list.

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-éàèç';

0

精彩评论

暂无评论...
验证码 换一张
取 消