开发者

Code igniter - Special Characters/Date in URL

开发者 https://www.devze.com 2023-01-07 01:42 出处:网络
Codeigniter ha开发者_开发知识库s this configuration setting $config[\'permitted_uri_chars\'] = \'\';

Codeigniter ha开发者_开发知识库s this configuration setting

$config['permitted_uri_chars'] = '';

using which we can specify which characters are allowed in the query string.

I have to accept date in my URL, the format is : Y/m/d H:i:s

The normal code igniter allowed URL character set is not allowing this date. For now I have set $config['permitted_uri_chars'] as empty but that's obviously a security threat. Please let me know which regex expression will work for this.


what you have to do is a simple routing

go to

application/config

and open the routes.php and add the following configuration

$route['notes/(:num)/(:any)'] = "notes/view/$3";

for more information visit for URI Routing

0

精彩评论

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