![]() |
Routing problem using $_GET query string - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Routing problem using $_GET query string (/showthread.php?tid=11371) |
Routing problem using $_GET query string - El Forum - 09-05-2008 [eluser]MABUS[/eluser] Hi, I need help on CI routing. The situation is that I have to use $_GET, thus using a query string to transfer from one page to another. Now, my problem is how to route properly. Here's my scenario ... 1. I have this '$route['^search/?$'], which redirects to 'folder1/controllerOne' . This basically means that if something like 'search' or 'search/' is on the url, then it will redirect to folder1/controller1. 2. I need '$route[^search\?.*$']' to redirecto to another controller, say folder1/controller2. This means that if I get something like 'http://domain.com/search?variable=value', then this sould be redirecting to controller2, since search is followed by '?'. So, how do I do something like this on CI? Thanks in advance |