Change the name of the local variable $router to $myRouter to match the preceding code fragment.

This commit is contained in:
Nate Smith 2013-06-24 20:44:07 -04:00
parent fef677168e
commit 84b70f3c09
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ $myRouter->addRoute(Route::newFromUriTemplate('/things/', 'ThingCollectionHandle
$myRouter->addRoute(Route::newFromUriTemplate('/things/{id}', 'ThingItemHandler')); $myRouter->addRoute(Route::newFromUriTemplate('/things/{id}', 'ThingItemHandler'));
// Determine and output the response. // Determine and output the response.
$response = $router->getResponse(); $response = $myRouter->getResponse();
$response->respond(); $response->respond();
``` ```