Browse Source

Urls absolues depuis producer vers frontend

dev
keun 6 years ago
parent
commit
4e0619306b
2 changed files with 4 additions and 5 deletions
  1. +0
    -1
      frontend/views/site/index.php
  2. +4
    -4
      producer/views/layouts/main.php

+ 0
- 1
frontend/views/site/index.php View File



/* @var $this yii\web\View */ /* @var $this yii\web\View */
$this->setTitle('Bienvenue sur la boîte à pain') ; $this->setTitle('Bienvenue sur la boîte à pain') ;
$this->setSubtitle('Des outils numériques pour les circuits courts') ;
$this->setPageTitle('Plateforme de réservation de pain') ; $this->setPageTitle('Plateforme de réservation de pain') ;


?> ?>

+ 4
- 4
producer/views/layouts/main.php View File

'items' => [ 'items' => [
[ [
'label' => '<span class="glyphicon glyphicon-user"></span> Inscription', '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 'visible' => Yii::$app->user->isGuest
], ],
[ [
'label' => '<span class="glyphicon glyphicon-log-in"></span> Connexion', '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 'visible' => Yii::$app->user->isGuest
], ],
[ [
'items' => [ 'items' => [
[ [
'label' => 'Profil', 'label' => 'Profil',
'url' => Url::frontend('user/update'),
'url' => Yii::$app->urlManagerFrontend->createAbsoluteUrl(['user/update']),
], ],
[ [
'label' => '<span class="glyphicon glyphicon-off"></span> Déconnexion', '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 'visible' => !Yii::$app->user->isGuest

Loading…
Cancel
Save