소스 검색

Url absolues (vers backend et frontend)

refactoring
keun 6 년 전
부모
커밋
5e916e0937
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. +5
    -5
      producer/views/layouts/main.php

+ 5
- 5
producer/views/layouts/main.php 파일 보기

@@ -28,7 +28,7 @@ $producer = $this->context->getProducer() ;
<div id="header-bap">
<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="" />
<span class="text">La boîte à pain</span>
</a>
@@ -116,7 +116,7 @@ $producer = $this->context->getProducer() ;
],
[
'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(),
'options' => ['id' => 'btn-administration']
],
@@ -150,9 +150,9 @@ $producer = $this->context->getProducer() ;
<div class="container">
<div class="overflow"></div>
<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>
</footer>

Loading…
취소
저장