|
|
|
|
|
|
|
|
]; |
|
|
]; |
|
|
$itemConnexion = [ |
|
|
$itemConnexion = [ |
|
|
'label' => '<span class="glyphicon glyphicon-log-in"></span> Connexion', |
|
|
'label' => '<span class="glyphicon glyphicon-log-in"></span> Connexion', |
|
|
'url' => $this->getUrlManagerFrontend()->createUrl(['site/login']), |
|
|
|
|
|
|
|
|
'url' => $this->getUrlManagerFrontend()->createAbsoluteUrl(['site/login']), |
|
|
'linkOptions' => ['class' => 'btn btn-default navbar-btn'], |
|
|
'linkOptions' => ['class' => 'btn btn-default navbar-btn'], |
|
|
'visible' => \Yii::$app->user->isGuest, |
|
|
'visible' => \Yii::$app->user->isGuest, |
|
|
'active' => $this->getControllerAction() == 'site/login' |
|
|
'active' => $this->getControllerAction() == 'site/login' |
|
|
]; |
|
|
]; |
|
|
$itemSignup = [ |
|
|
$itemSignup = [ |
|
|
'label' => '<span class="glyphicon glyphicon-user"></span> Inscription', |
|
|
'label' => '<span class="glyphicon glyphicon-user"></span> Inscription', |
|
|
'url' => $this->getUrlManagerFrontend()->createUrl(['site/signup']), |
|
|
|
|
|
|
|
|
'url' => $this->getUrlManagerFrontend()->createAbsoluteUrl(['site/signup']), |
|
|
'linkOptions' => ['class' => 'btn btn-default navbar-btn'], |
|
|
'linkOptions' => ['class' => 'btn btn-default navbar-btn'], |
|
|
'visible' => \Yii::$app->user->isGuest, |
|
|
'visible' => \Yii::$app->user->isGuest, |
|
|
'active' => $this->getControllerAction() == 'site/signup' |
|
|
'active' => $this->getControllerAction() == 'site/signup' |