pull/11/head
Mike Cao 14 years ago
parent f54b614bc9
commit 8e4b75f5e6

@ -122,7 +122,7 @@ You can specify named parameters in routes which will be passed along to your ca
You can also include regular expressions with your named parameters by using the `:` delimiter:
Flight::route('/@name/@id:[0-9]{3}', function($params){
Flight::route('/@name/@id:[0-9]{3}', function($name, $id){
// This will match /bob/123
// But will not match /bob/12345
});

Loading…
Cancel
Save