Welcome Guest, Not a member yet? Register   Sign In
URL Forwarding and CodeIgniter
#3

[eluser]Eric Cope[/eluser]
It looks like some regular expressions and back references will do it. Additionally, I should route my classes above the regular expressions so they don't get incorrectly translated.

Code:
$route['^([a-zA-Z0-9\_\-]+)$'] = "class_to_process_route/$1";

That should match only letters, numbers. underscores and dashes. Can someone double check me?


Messages In This Thread
URL Forwarding and CodeIgniter - by El Forum - 07-19-2008, 12:32 PM
URL Forwarding and CodeIgniter - by El Forum - 07-19-2008, 02:25 PM
URL Forwarding and CodeIgniter - by El Forum - 07-19-2008, 03:09 PM
URL Forwarding and CodeIgniter - by El Forum - 07-19-2008, 03:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB