|
|
@@ -38,12 +38,12 @@ $producer = $this->context->getProducer() ; |
|
|
|
'items' => [ |
|
|
|
[ |
|
|
|
'label' => '<span class="glyphicon glyphicon-user"></span> Inscription', |
|
|
|
'url' => Yii::$app->urlManagerFrontend->createUrl(['site/signup']), |
|
|
|
'url' => Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/signup']), |
|
|
|
'visible' => Yii::$app->user->isGuest |
|
|
|
], |
|
|
|
[ |
|
|
|
'label' => '<span class="glyphicon glyphicon-log-in"></span> Connexion', |
|
|
|
'url' => Yii::$app->urlManagerFrontend->createUrl(['site/login','return_url' => Yii::$app->urlManager->createUrl(['producer/index'])]), |
|
|
|
'url' => Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/login','return_url' => Yii::$app->urlManager->createAbsoluteUrl(['producer/index'])]), |
|
|
|
'visible' => Yii::$app->user->isGuest |
|
|
|
], |
|
|
|
[ |
|
|
@@ -53,11 +53,11 @@ $producer = $this->context->getProducer() ; |
|
|
|
'items' => [ |
|
|
|
[ |
|
|
|
'label' => 'Profil', |
|
|
|
'url' => Url::frontend('user/update'), |
|
|
|
'url' => Yii::$app->urlManagerFrontend->createAbsoluteUrl(['user/update']), |
|
|
|
], |
|
|
|
[ |
|
|
|
'label' => '<span class="glyphicon glyphicon-off"></span> Déconnexion', |
|
|
|
'url' => Url::frontend('site/logout'), |
|
|
|
'url' => Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/logout']), |
|
|
|
] |
|
|
|
], |
|
|
|
'visible' => !Yii::$app->user->isGuest |