CodeIgniter Forums
URI trouble? *solved* - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: URI trouble? *solved* (/showthread.php?tid=39371)



URI trouble? *solved* - El Forum - 03-09-2011

[eluser]ipsod[/eluser]
I switched $config['uri_protocol'] to QUERY_STRING and it works. Now to see if I can get command line calls to work.

___original_post_______________________________________________________________

I'm using CI 2.0.0 with a .htaccess rewrite, going to "mysite.com/controller/method" from browser.

In CI_URI, function _fetch_uri_string(), line 65 evaluates TRUE and shouldn't, since the comment above it says "Arguments exist, it must be a command line request".
Code:
65: if ( ! empty($_SERVER['argv']))


So, this function is called, line 67, and it returns this value - Array ( [0] => /controller/method ).
Code:
67: $this->uri_string = $this->_parse_cli_args();

I "fixed" it by copying URI to application/core/MY_URI.php and commenting that if out, but I can't get command line requests to work.

Please help.