Browse Source

[Backend] Correctif bouton retour site

refactoring
keun 6 years ago
parent
commit
087f455572
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      backend/views/layouts/main.php

+ 3
- 1
backend/views/layouts/main.php View File

\common\assets\CommonAsset::register($this); \common\assets\CommonAsset::register($this);
\backend\assets\AppAsset::register($this); \backend\assets\AppAsset::register($this);


$producer = Etablissement::findOne(Yii::$app->user->identity->id_etablissement) ;

?> ?>
<?php $this->beginPage() ?> <?php $this->beginPage() ?>
<!DOCTYPE html> <!DOCTYPE html>


$menuItems[] = [ $menuItems[] = [
'label' => '<span class="retour-site">Retour sur le site</span>', 'label' => '<span class="retour-site">Retour sur le site</span>',
'url' => Url::frontend(),
'url' => Yii::$app->urlManagerProducer->createAbsoluteUrl(['site/index','slug_producer' => $producer->slug]),
]; ];
} }
echo Nav::widget([ echo Nav::widget([

Loading…
Cancel
Save