解决方法:
1) 在config.php 中,将‘uri_protocol’ 设置为 ‘PATH_INFO’.
PHP
$config['uri_protocol'] = “PATH_INFO”;
2) 在需要使用$_GET的之前加:
PHP
parse_str($_SERVER['QUERY_STRING'], $_GET);
这样,形如 /posts/post?name=hello&page=52 就可以运行了。
解决方法:
1) 在config.php 中,将‘uri_protocol’ 设置为 ‘PATH_INFO’.
PHP
$config['uri_protocol'] = “PATH_INFO”;
2) 在需要使用$_GET的之前加:
PHP
parse_str($_SERVER['QUERY_STRING'], $_GET);
这样,形如 /posts/post?name=hello&page=52 就可以运行了。