Welcome Guest, Not a member yet? Register   Sign In
Best way to do this?
#7

[eluser]cahva[/eluser]
[quote author="pbreit" date="1288775238"]
My understanding is that enable_query_strings does switch your URLs from segments to querystrings so that's not a great option (http://ellislab.com/codeigniter/user-gui.../urls.html). There are some threads on the forums about how to get around CodeIgniter's annoying lack of querystring support.[/quote]

Have you actually tried it? That sentence in there just means that the url helper will not work if you use the ?c=controller&m=method. But it does'nt mean you have to use ?c=controller&m=method as your urls and you can continue to use segments.

If you run Apache with mod_php this is the config that is needed:

Code:
$config['uri_protocol']    = "PATH_INFO";
$config['enable_query_strings'] = TRUE;

When run with CGI, theres couple of changes. In .htaccess and the uri_protocol config, but it will work nicely after those changes.

I have developed many sites with this that need GET(for example ecommerce sites that need get as most payment gateways return information only via get parameters) and have had zer0 problems. So in my book, codeigniter does have proper querystring support. Maybe the userguide needs some more detailed information as people are afraid to use it.


Messages In This Thread
Best way to do this? - by El Forum - 11-02-2010, 05:38 PM
Best way to do this? - by El Forum - 11-02-2010, 06:15 PM
Best way to do this? - by El Forum - 11-02-2010, 06:54 PM
Best way to do this? - by El Forum - 11-02-2010, 07:29 PM
Best way to do this? - by El Forum - 11-02-2010, 10:07 PM
Best way to do this? - by El Forum - 11-03-2010, 02:45 AM
Best way to do this? - by El Forum - 11-03-2010, 04:42 AM
Best way to do this? - by El Forum - 11-03-2010, 02:36 PM
Best way to do this? - by El Forum - 11-03-2010, 04:43 PM
Best way to do this? - by El Forum - 11-03-2010, 08:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB