Update example.php
This commit is contained in:
parent
16af14834a
commit
26c8469984
@ -46,8 +46,8 @@ App::get('/echo_optional/$text?',
|
|||||||
|
|
||||||
// example showing advanced multiple route parameters
|
// example showing advanced multiple route parameters
|
||||||
App::get('/user/$user_id/friends/$pagination?', function($user_id, $pagination = '0') {
|
App::get('/user/$user_id/friends/$pagination?', function($user_id, $pagination = '0') {
|
||||||
print("<h1>Showing friends for user: $user_id</h1>");
|
print("<h1>Showing friends for user: $user_id</h1>");
|
||||||
print("<p>Current page: $pagination</p>");
|
print("<p>Current page: $pagination</p>");
|
||||||
});
|
});
|
||||||
|
|
||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user