diff options
author | Aaron Parecki <aaron@parecki.com> | 2016-12-17 16:00:26 -0800 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2016-12-17 16:00:26 -0800 |
commit | ab0c5f9bfabacbf737cec3fb5796ce66dd37d877 (patch) | |
tree | ed5393b79a4dd6cd66d639920d76c0ad75459628 /controllers/editor.php | |
parent | 0a662e33ee432e2583a934cb161a0a1e5b49b76f (diff) |
show logged-in user on editor
fixes #9
Diffstat (limited to 'controllers/editor.php')
-rw-r--r-- | controllers/editor.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/controllers/editor.php b/controllers/editor.php index c880a00..3818328 100644 --- a/controllers/editor.php +++ b/controllers/editor.php @@ -2,7 +2,9 @@ $app->get('/editor', function() use($app) { if($user=require_login($app)) { - $html = $app->render('editor.php'); + $html = $app->render('editor.php', [ + 'user' => $user + ]); $app->response()->body($html); } }); |