diff --git a/views/toolbar.php b/views/toolbar.php index 6a3d70c..8e785e0 100644 --- a/views/toolbar.php +++ b/views/toolbar.php @@ -318,12 +318,34 @@ # name + directory + controller + action + params $route): - $class = ($route == Request::initial()->route() ? ' current' : ''); ?> + // Toolbar may render on shutdown, so Request::current() is empty + $request = Request::current() ? Request::current() : Request::initial(); + $current = $route == $request->route(); + $class = ($current ? ' current' : ''); ?> + + directory() ?> + controller() ?> + action() ?> + + + + + +   +