Rewrite URL's |
[eluser]BrianDHall[/eluser]
[quote author="Guido Mallee" date="1257302662"]Thanks for your tip. Seems like a perfect alternative. But how do i do the regular rewrite part? When i use a '?' in my route index, CI says no...[/quote] Here you go: http://ellislab.com/forums/viewthread/133908/ Basically what I do is in my routes.php file I check $_GET - which still exists because I enable query strings. The nice thing is that you aren't forced to use GET - it just becomes an option you can freely intermix with CI-style url segments. If any of this doesn't make sense just let me know and I'll try to be a little more specific. The use of conditionally setting routes based upon GET usage allows you to accomplish things you otherwise have to do a lot of work to accomplish. As the hook method demonstrates there is more than one way to handle things, but I really like the flexibility of handling GET and POST - I really think it is how CI should be configured by default. |
Messages In This Thread |
Rewrite URL's - by El Forum - 11-03-2009, 12:05 PM
Rewrite URL's - by El Forum - 11-03-2009, 12:26 PM
Rewrite URL's - by El Forum - 11-03-2009, 02:44 PM
Rewrite URL's - by El Forum - 11-03-2009, 04:35 PM
Rewrite URL's - by El Forum - 11-03-2009, 05:06 PM
Rewrite URL's - by El Forum - 11-03-2009, 06:05 PM
Rewrite URL's - by El Forum - 11-04-2009, 01:31 AM
Rewrite URL's - by El Forum - 11-04-2009, 06:17 AM
Rewrite URL's - by El Forum - 11-04-2009, 06:31 AM
Rewrite URL's - by El Forum - 11-05-2009, 05:34 AM
|