[eluser]MikePearce[/eluser]
Hi all!
I need to append a key:value pair to my URI:
Code:
http://site.com/somecontroller/somemethod/id:1234
id:1234 could be on the end of any URI on the site (it's a replacement for the querystring). It's always going to be on the end, but I'll not know WHERE it is in the URI, so it might be
Code:
http://site.com/somecontroller/id:1234
or
http://site.com/id:1234
So, my question is, how do I remove it from the URI, process it and continue on my way?
I thought about using a pre controller hook, strip it from the URI, process it (I need to set the ID in the cookie and do some other tracking) and then set whatever variable CI needs to know which controller/method to run. When I use get_instance() in a pre-controller hook, I get nothing! Even if I did get something, I don't know what the vars are that I need.
Anyone got any ideas?
Thanks,
Mike