Welcome Guest, Not a member yet? Register   Sign In
Problem with query string
#1

[eluser]Wades[/eluser]
Hi, I got a problem with query string in url
Code:
<?php
class Test extends Controller {

    function index()
    {
        echo 'test';
    }
}
?>
here is my controller code, I can access with the url like
http://localhost/test
but when I try
http://localhost/test?q=test
it comes with a 404 error
and I already set
Code:
$config['enable_query_strings'] = TRUE;
Any help would be greatly appreciated. Thanks in advance.
#2

[eluser]gtech[/eluser]
I found this thread, looks like someone had the same problem, the solution is at the bottom of the thread.

[url="http://ellislab.com/forums/viewthread/47179/"](thread 47179)[/url]

hope it helps.
#3

[eluser]Wades[/eluser]
Thanks gtech for your really fast reply
that thread helps but I still have a very strange question about this,
see it in that thread
#4

[eluser]gtech[/eluser]
Hello in the above thread Joeles linked to this patch:-

[url="http://ellislab.com/forums/viewthread/47150/"](thread 47150 with patch)[/url]

give it a go, if it fixes your problem then log a bug?
#5

[eluser]Wades[/eluser]
Thanks man

Quote:if it fixes your problem then log a bug?

I'm not mean to, I just think we should point it out if it maybe a bug
so that to make CI more perfect Tongue




Theme © iAndrew 2016 - Forum software by © MyBB