Browse Source

Url absolues (vers backend et frontend)

dev
keun 6 years ago
parent
commit
5e916e0937
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      producer/views/layouts/main.php

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

<div id="header-bap"> <div id="header-bap">
<div class="container"> <div class="container">
<a id="logo" href="<?= Yii::$app->urlManagerFrontend->createUrl(['site/index']); ?>">
<a id="logo" href="<?= Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/index']); ?>">
<img class="icon" src="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/img/laboulange3.png" alt="" /> <img class="icon" src="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/img/laboulange3.png" alt="" />
<span class="text">La boîte à pain</span> <span class="text">La boîte à pain</span>
</a> </a>
], ],
[ [
'label' => '<span class="glyphicon glyphicon-cog"></span> Administration', 'label' => '<span class="glyphicon glyphicon-cog"></span> Administration',
'url' => Yii::$app->urlManagerBackend->createUrl(['site/index']),
'url' => Yii::$app->urlManagerBackend->createAbsoluteUrl(['site/index']),
'visible' => isset(Yii::$app->user->identity) && Yii::$app->user->identity->isBoulanger(), 'visible' => isset(Yii::$app->user->identity) && Yii::$app->user->identity->isBoulanger(),
'options' => ['id' => 'btn-administration'] 'options' => ['id' => 'btn-administration']
], ],
<div class="container"> <div class="container">
<div class="overflow"></div> <div class="overflow"></div>
<div class="content"> <div class="content">
<a href="<?php echo Url::frontend('site/index') ; ?>">La boîte à pain</a>
<a href="<?php echo Url::frontend('site/mentions') ; ?>">Mentions légales</a>
<a href="<?php echo Url::frontend('site/cgv') ; ?>">CGS</a>
<a href="<?php echo Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/index']) ; ?>">La boîte à pain</a>
<a href="<?php echo Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/mentions']) ; ?>">Mentions légales</a>
<a href="<?php echo Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/cgv']) ; ?>">CGS</a>
</div> </div>
</div> </div>
</footer> </footer>

Loading…
Cancel
Save