admin.php
1011 Bytes
<?php
use yii\widgets\Breadcrumbs;
use yii\widgets\Menu;
\frontend\assets\AdminAsset::register($this);
/* @var $content string */
$this->beginContent('@app/views/layouts/main.php');
?>
<div class="wrap">
<div class="container">
<div class="left_block">
<?php
echo Menu::widget([
'options' => ['class' => 'nav nav-pills nav-stacked'],
'items' => [
['label' => 'Кабинет', 'url' => ['accounts/cabinet']],
['label' => 'Выход', 'url' => ['/site/logout']],
],
]);
?>
</div>
<div class="right_block">
<?= Breadcrumbs::widget([
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
]) ?>
<?= $content ?>
</div>
</div>
</div>
<?php $this->endContent() ?>