开发者

Code igniter - Special Characters/Date in URL

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜