Added Routing Wildcard '(:all)' to Documentation

This commit is contained in:
Christoph Menke 2012-08-21 17:08:21 +02:00
parent 833cf12ce3
commit 20c696d4ae
1 changed files with 7 additions and 0 deletions

View File

@ -78,6 +78,13 @@ #### Allowing a URI segment to be any alpha-numeric string:
//
});
#### Catching the remaining URI without limitations:
Route::get('files/(:all)', function($path)
{
//
});
#### Allowing a URI segment to be optional:
Route::get('page/(:any?)', function($page = 'index')