Welcome Guest, Not a member yet? Register   Sign In
Please consider querystring support in 2.x
#82

[eluser]amosmos[/eluser]
[quote author="clooner" date="1280768090"][quote author="amosmos" date="1280767548"]
I don't think you are fully reading the posts, which is OK because there are so many of them now and it can get a bit confusing.

1. CI doesn't work out of the box for me and I *have* to change the protocol to "REQUEST_URI". So the first step you are telling me to do I already do because I have to.

2. Now you say to add the "?=&" characters to the allowed characters. Well like I wrote before, I tried that but then if I do it this way CI thinks the entire thing is the controller (or method) name and don't understand it needs to ignore the "?" character and everything that follows it. That's why in this case I get a "404" error (and not the "The URI you submitted has disallowed characters" error).

So, like I said, I don't even get the page loaded at all.

WanWizard, hope I could hear your input on this...

Thanks[/quote]

Well since you changed your uri protocol to request_uri your segments are different yes. probably it can't find your controller now. Your segment array will look like something like this which is not like default.
Code:
Array
(
    [1] => path
    [2] => index.php
    [3] => welcome
    [4] => index
    [5] => ?par1=tada&par2=tada2
)
There are actually 2 easy fixes for it. (very basic examples). This fixes the routing problem.
Code:
$route['(:any)/index.php/(:any)/(:any)/(:any)'] = "$2/$3";
or
$route[':any'] = 'welcome';
[/quote]

That's not true - the first option won't work as there isn't a "/" between the last uri segment and the query string, and the second option will break the way the URI helper works.

I appreciate your trying to help, but my actual question is really to WanWizard who's solution really fixed the way CI handles uri's by separating the purpose of "enable_query_string" to 2 different config options, but he only did that in the AUTO protocol, which unfortunately I can't use. I wanted to know how he did that, and if my guess that he actually didn't do it but based it on the "AUTO" protocol original ignorance of the "?" character (after the first "if" block).

Thanks


Messages In This Thread
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 12:52 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 01:55 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 02:45 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 02:48 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 02:57 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 03:23 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 03:47 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 03:59 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 04:07 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 07:46 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 08:09 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 08:41 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 09:26 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 11:45 AM
Please consider querystring support in 2.x - by El Forum - 06-30-2010, 03:36 AM
Please consider querystring support in 2.x - by El Forum - 06-30-2010, 04:57 AM
Please consider querystring support in 2.x - by El Forum - 06-30-2010, 05:00 AM
Please consider querystring support in 2.x - by El Forum - 06-30-2010, 08:58 AM
Please consider querystring support in 2.x - by El Forum - 06-30-2010, 09:39 AM
Please consider querystring support in 2.x - by El Forum - 06-30-2010, 09:49 AM
Please consider querystring support in 2.x - by El Forum - 07-01-2010, 03:32 AM
Please consider querystring support in 2.x - by El Forum - 07-01-2010, 11:50 AM
Please consider querystring support in 2.x - by El Forum - 07-01-2010, 12:11 PM
Please consider querystring support in 2.x - by El Forum - 07-01-2010, 09:14 PM
Please consider querystring support in 2.x - by El Forum - 07-02-2010, 02:13 AM
Please consider querystring support in 2.x - by El Forum - 07-13-2010, 03:49 AM
Please consider querystring support in 2.x - by El Forum - 07-13-2010, 09:11 AM
Please consider querystring support in 2.x - by El Forum - 07-13-2010, 10:28 AM
Please consider querystring support in 2.x - by El Forum - 07-13-2010, 11:29 AM
Please consider querystring support in 2.x - by El Forum - 07-13-2010, 01:16 PM
Please consider querystring support in 2.x - by El Forum - 07-24-2010, 02:14 AM
Please consider querystring support in 2.x - by El Forum - 07-24-2010, 02:24 AM
Please consider querystring support in 2.x - by El Forum - 07-26-2010, 02:47 AM
Please consider querystring support in 2.x - by El Forum - 07-26-2010, 03:33 AM
Please consider querystring support in 2.x - by El Forum - 07-26-2010, 03:41 AM
Please consider querystring support in 2.x - by El Forum - 07-28-2010, 11:11 AM
Please consider querystring support in 2.x - by El Forum - 07-28-2010, 11:42 AM
Please consider querystring support in 2.x - by El Forum - 07-28-2010, 03:32 PM
Please consider querystring support in 2.x - by El Forum - 07-28-2010, 03:39 PM
Please consider querystring support in 2.x - by El Forum - 07-28-2010, 03:58 PM
Please consider querystring support in 2.x - by El Forum - 07-29-2010, 01:47 PM
Please consider querystring support in 2.x - by El Forum - 07-29-2010, 04:36 PM
Please consider querystring support in 2.x - by El Forum - 07-29-2010, 06:19 PM
Please consider querystring support in 2.x - by El Forum - 07-29-2010, 07:03 PM
Please consider querystring support in 2.x - by El Forum - 07-29-2010, 10:25 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 12:26 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 12:56 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 01:09 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 01:28 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 01:36 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 03:54 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 10:34 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 11:31 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 03:09 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 04:51 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 04:52 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 06:10 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 08:35 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 08:41 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 10:20 PM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 02:35 AM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 05:57 AM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 06:07 AM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 07:34 AM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 09:40 AM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 10:08 AM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 07:08 PM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 09:50 PM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 11:50 PM
Please consider querystring support in 2.x - by El Forum - 08-01-2010, 01:27 AM
Please consider querystring support in 2.x - by El Forum - 08-01-2010, 01:42 AM
Please consider querystring support in 2.x - by El Forum - 08-01-2010, 03:00 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 04:37 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:01 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:06 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:17 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:28 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:31 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:39 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:45 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:54 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 06:03 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 06:15 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 09:04 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 10:57 AM
Please consider querystring support in 2.x - by El Forum - 08-03-2010, 10:56 PM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 01:09 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 01:19 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 01:40 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 02:06 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 02:08 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 02:18 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 02:37 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 02:39 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 03:51 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 04:01 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 04:55 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 12:50 PM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 02:55 PM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 04:47 PM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 06:00 PM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 06:55 PM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 07:08 PM
Please consider querystring support in 2.x - by El Forum - 08-07-2010, 12:04 AM
Please consider querystring support in 2.x - by El Forum - 08-07-2010, 09:31 AM
Please consider querystring support in 2.x - by El Forum - 08-23-2010, 02:13 PM
Please consider querystring support in 2.x - by El Forum - 08-23-2010, 02:30 PM
Please consider querystring support in 2.x - by El Forum - 08-23-2010, 02:31 PM
Please consider querystring support in 2.x - by El Forum - 08-23-2010, 03:41 PM
Please consider querystring support in 2.x - by El Forum - 08-23-2010, 05:09 PM
Please consider querystring support in 2.x - by El Forum - 08-23-2010, 06:36 PM
Please consider querystring support in 2.x - by El Forum - 08-24-2010, 01:32 PM
Please consider querystring support in 2.x - by El Forum - 08-24-2010, 01:32 PM
Please consider querystring support in 2.x - by El Forum - 08-25-2010, 05:33 PM
Please consider querystring support in 2.x - by El Forum - 08-25-2010, 06:51 PM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 12:48 AM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 05:51 AM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 10:16 AM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 10:16 AM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 11:19 AM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 12:28 PM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 02:27 PM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 04:34 PM
Please consider querystring support in 2.x - by El Forum - 08-27-2010, 01:32 AM
Please consider querystring support in 2.x - by El Forum - 08-27-2010, 02:21 AM
Please consider querystring support in 2.x - by El Forum - 08-27-2010, 07:36 AM
Please consider querystring support in 2.x - by El Forum - 08-27-2010, 02:52 PM
Please consider querystring support in 2.x - by El Forum - 08-27-2010, 04:15 PM
Please consider querystring support in 2.x - by El Forum - 09-02-2010, 03:08 AM
Please consider querystring support in 2.x - by El Forum - 09-02-2010, 07:46 AM
Please consider querystring support in 2.x - by El Forum - 09-02-2010, 08:30 AM
Please consider querystring support in 2.x - by El Forum - 09-02-2010, 11:53 AM
Please consider querystring support in 2.x - by El Forum - 09-02-2010, 03:41 PM
Please consider querystring support in 2.x - by El Forum - 11-14-2010, 04:58 PM
Please consider querystring support in 2.x - by El Forum - 11-14-2010, 05:01 PM
Please consider querystring support in 2.x - by El Forum - 11-14-2010, 05:33 PM
Please consider querystring support in 2.x - by El Forum - 11-14-2010, 10:28 PM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 04:57 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 10:19 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 10:29 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 10:47 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 10:53 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 11:11 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 11:23 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 01:39 PM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 04:00 PM
Please consider querystring support in 2.x - by El Forum - 04-25-2012, 06:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB