Welcome Guest, Not a member yet? Register   Sign In
Creating an API
#2

[eluser]missionsix[/eluser]
[quote author="dmorin" date="1220231478"]
Does anyone have a hack to get CI to ignore the querystring part of the url and just route based on the url before the "?"? I would like to be able to pass parameters through the querystring but in my experience it completely screws up the routing. This is one place I would love to see CI improve. (contrary to CI belief, $_GET is not the root of all evil ;-) )
[/quote]

I've gotten routing to work along with query strings by changing the variable

Code:
$config['uri_protocol']    = "AUTO";

to

Code:
$config['uri_protocol']= "ORIG_PATH_INFO";

Although this worked for my server / setup, it may not work on yours. I'm just letting you know that it is possible to use pretty urls along with query strings to achieve that perfect url structure!


Messages In This Thread
Creating an API - by El Forum - 08-31-2008, 02:11 PM
Creating an API - by El Forum - 08-31-2008, 03:21 PM
Creating an API - by El Forum - 08-31-2008, 05:43 PM
Creating an API - by El Forum - 08-31-2008, 05:46 PM
Creating an API - by El Forum - 08-31-2008, 06:19 PM
Creating an API - by El Forum - 08-31-2008, 06:33 PM
Creating an API - by El Forum - 08-31-2008, 07:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB