Commit f4a80afb authored by RJ Garcia's avatar RJ Garcia

Fixed var name in organizing controllers

Updated the var name in the organizing controllers documenation
in order be consistent with the variable naming throughout the
code sample.
Signed-off-by: default avatarRJ Garcia <rj@bighead.net>
parent b2a949a4
...@@ -26,9 +26,9 @@ group them logically:: ...@@ -26,9 +26,9 @@ group them logically::
$app->mount('/forum', $forum); $app->mount('/forum', $forum);
// define controllers for a admin // define controllers for a admin
$app->mount('/admin', function ($api) { $app->mount('/admin', function ($admin) {
// recursively mount // recursively mount
$api->mount('/blog', function ($user) { $admin->mount('/blog', function ($user) {
$user->get('/', function () { $user->get('/', function () {
return 'Admin Blog home page'; return 'Admin Blog home page';
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment