Can't get Params from URL with ?= |
[eluser]Unknown[/eluser]
I can use GET but is there a way to do this with URI class? EDIT: This helped it not give a 404: http://ellislab.com/forums/viewthread/99570/ but I can't get it to recognize: index.php/form/auth?ticket=ST-4388-NXthg3CtTwvbr5qCRDkf I'm using CAS (Central Authentication Service) which is a web based external login form. Here's a quick idea of what it does: Quote:When your Web site is set up to use the Web Login Service it uses a My question is when the CAS service bounces the user back to my site I get a url like this: index.php/form/auth/?ticket=ST-4317-mMnvPF9qCAE2DfGQFld9 I am also able to get this url if I play with some variables: index.php/form/auth?ticket=ST-4388-NXthg3CtTwvbr5qCRDkf (notice the / before ? is now gone) This seems possible to use with GET This gives me a 404. I tried some ideas with grabbing the param with the URI class, but that is not working. $ticket = $this->uri->segment(3,0); $string = $this->uri->uri_string(); echo "This is Ticket parse it now: <b>$ticket</b> and string: <b>$string</b> <br/>"; After redirecting with the ticket in the path this is what it echos: This is Ticket parse it now: 0 and string: /form/test My next guess is to enable GET, but I don't know if this will work either, I'm going to try it anyways, What would be a good way to get this ticket with CI?
[eluser]LifeSteala[/eluser]
Can you make your URL return this? index.php/form/auth/ticket/ST-4388-NXthg3CtTwvbr5qCRDkf Then you can use $ticket = $this->uri->segment(4, false); |
Welcome Guest, Not a member yet? Register Sign In |