[eluser]Madalina.C[/eluser]
Hello
I'm using AJAX POST to pass CI a hard-coded URL from my site.
Lets say this URL that I pass in, and wish to dissect, is
Code:
http://mysite.com/dog/moo/123/
I am looking for a way to use the existing routes.php to extract 'dog', 'moo', '123' according to the regex I provided.
Here is what I've tried
1) Searching these forums for the solution
2) Modifying the $_SERVER param BEFORE my AJAX-receiving class is instantiated. (but
Code:
print_r($this->uri);
still returns the info about the AJAX script rather than the hard-coded URL I receive via AJAX
3) Messing around with the router class but it seems to only use $_SERVER values.
Any help is appreciated
Thank you!
- Madalina