beginPage() ?> <?= Html::encode($this->title) ?> head() ?> beginBody() ?>
'Sport >> ' . Yii::$app->name, 'brandUrl' => Yii::$app->homeUrl, 'options' => [ 'class' => 'navbar-inverse navbar-fixed-top', ], ]); $menuItems = [ ['label' => 'Home', 'url' => ['/site/index']], ['label' => 'About', 'url' => ['/page/view', 'id'=>2]], ['label' => 'Contact', 'url' => ['/contact/index']], ]; if (Yii::$app->user->isGuest) { $menuItems[] = ['label' => 'Signup', 'url' => ['/auth/signup/request']]; $menuItems[] = ['label' => 'Login', 'url' => ['/auth/auth/login']]; } else { $menuItems[] = '
  • ' . Html::beginForm(['/auth/auth/logout'], 'post') . Html::submitButton( 'Logout (' . Yii::$app->user->identity->user->username . ')', ['class' => 'btn btn-link logout'] ) . Html::endForm() . '
  • '; } echo Nav::widget([ 'options' => ['class' => 'navbar-nav navbar-right'], 'items' => $menuItems, ]); NavBar::end(); ?>
    isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], ]) ?>
    endBody() ?> endPage() ?>