Welcome Guest, Not a member yet? Register   Sign In
URI routing question
#2

[eluser]Grahack[/eluser]
Quote:I cannot control the use of query strings in the callback url format. The callback url looks something like:

http://www.mysite.com/index.php/mycontro...98dd444334
Do you mean you don't have control at all and must deal with this format, that is an outer space URL to CI?

I guess what you get with
http://www.mysite.com/index.php/mycontro...98dd444334
is a 404 because CI then looks for a controller named auth_token (without query strings enabled).
CI unsets the $_GET array if you don't "enable query strings" (see libraries/Input.php) and I don't think you can grab the value, even in the triggered auth_token controller.

If you enable query strings, then refer to the docs at section Enabling Query Strings. I didn't have much good results even with this...

Please give feedback!

EDIT: I didn't see it was your first post. Welcome here! And for these kind of problems, if you have a local install, don't be afraid to hard-debug CI to understand how it works. When investigating for your problem, I just added some
Code:
die(APPPATH.'controllers/'.$segments[0]);
in libraries/Router.php and so on to see how CI behaves.


Messages In This Thread
URI routing question - by El Forum - 01-05-2008, 02:42 PM
URI routing question - by El Forum - 01-06-2008, 02:34 AM
URI routing question - by El Forum - 01-06-2008, 06:12 AM
URI routing question - by El Forum - 01-06-2008, 08:04 AM
URI routing question - by El Forum - 01-06-2008, 08:18 AM
URI routing question - by El Forum - 01-06-2008, 08:18 AM
URI routing question - by El Forum - 01-06-2008, 08:34 AM
URI routing question - by El Forum - 01-11-2008, 02:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB