From 61e29c448bac1cd0a8e2b49bf69361b5adf35c26 Mon Sep 17 00:00:00 2001 From: Brett O'Donnell Date: Tue, 23 Jun 2015 18:48:04 +0930 Subject: [PATCH] update example to use navbar-nav class if you try to render the nav without this class it renders each item on its own line. this change means they are rendered inline as expected. --- NavBar.php | 1 + 1 file changed, 1 insertion(+) diff --git a/NavBar.php b/NavBar.php index f67f32b..10fc7da 100644 --- a/NavBar.php +++ b/NavBar.php @@ -27,6 +27,7 @@ use yii\helpers\ArrayHelper; * ['label' => 'Home', 'url' => ['/site/index']], * ['label' => 'About', 'url' => ['/site/about']], * ], + * 'options' => ['class' => 'navbar-nav'], * ]); * NavBar::end(); * ```