Welcome Guest, Not a member yet? Register   Sign In
Using a query string inside of a clean url.
#11

[eluser]Phil Sturgeon[/eluser]
[quote author="Colin Williams" date="1234202838"]do http://ci.localhost/books/search/phrase/my+search instead[/quote]

There is nothing wrong with using both URI segments and a normal query string.

I have seen so many posts from you saying new users here worry about always doing things the CI way and should not be afraid to mix with native code and old fashioned methods. This is a perfect example!

URI segments are for clean URL structure yes, but they should mainly be used for SEO and logical controller selecting. If you want to pass an unknown number of variables from a form to a controller that does not know or care what order they in or how many there are, I cannot see a better way.

Sure you could send the GET to a controller which formats the URL and sends the result controller an associative URL, but what is the point?

Anyhow, url_decode() should take the crazy values out of the GET parameters.


Messages In This Thread
Using a query string inside of a clean url. - by El Forum - 12-27-2008, 04:17 PM
Using a query string inside of a clean url. - by El Forum - 12-27-2008, 05:22 PM
Using a query string inside of a clean url. - by El Forum - 12-27-2008, 05:34 PM
Using a query string inside of a clean url. - by El Forum - 12-29-2008, 03:48 AM
Using a query string inside of a clean url. - by El Forum - 12-29-2008, 10:55 AM
Using a query string inside of a clean url. - by El Forum - 12-29-2008, 12:53 PM
Using a query string inside of a clean url. - by El Forum - 02-09-2009, 04:22 AM
Using a query string inside of a clean url. - by El Forum - 02-09-2009, 05:00 AM
Using a query string inside of a clean url. - by El Forum - 02-09-2009, 06:07 AM
Using a query string inside of a clean url. - by El Forum - 02-09-2009, 06:47 AM
Using a query string inside of a clean url. - by El Forum - 02-13-2009, 03:00 AM
Using a query string inside of a clean url. - by El Forum - 02-13-2009, 12:21 PM
Using a query string inside of a clean url. - by El Forum - 02-13-2009, 12:32 PM
Using a query string inside of a clean url. - by El Forum - 01-05-2011, 09:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB