Welcome Guest, Not a member yet? Register   Sign In
Routing a controller - how to dismiss certain functions?
#3

[eluser]xwero[/eluser]
Code:
$route['(signup/)(?!post|quick)'] = '$1$2'; // i fetch the controller too because i'm lazy
That should work, it's a valid regular expression but the negative look ahead isn't implemented in every regex parser.

If that doesn't work you can always do
Code:
$route['(signup/)(post|quick)'] = '$1$2';
$route['(signup/)(.+)'] = '$1$2';


Messages In This Thread
Routing a controller - how to dismiss certain functions? - by El Forum - 04-30-2009, 07:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB