CodeIgniter Include query strings

I got this URL:

http://twitternieuws.com/class/function/ID?oauth_token=xxxxx&oauth_verifier=xxxxx

And I keep getting errors like "The page you requested was not found" or "The URI you submitted has illegal characters." I tried to change the following settings with various settings:

$config['permitted_uri_chars'];
$config['enable_query_strings'];
$config['uri_protocol'];

Is there anything I can do to make it work? I am using codeigniter1.7.2

+1
source share
2 answers

1.7.2 - , ?c=controller&m=method, URL- psuedo $_GET. , - , , .

Codeigniter, $_GET ( ). CI does not use $_GET so we are going to unset() the global $_GET array. , , I $GET? , , , $_GET.

, :

: https://bitbucket.org/ellislab/codeigniter-reactor/

: http://codeigniter.com/

+2

CodeIgniter 2 , - $_GET ( , ):

parse_str ($ _ SERVER [ 'QUERY_STRING'], $_ GET);

config.php:

//$config ['uri_protocol'] = "AUTO";//

$config ['uri_protocol'] = "PATH_INFO";//

+1

All Articles