public function loadSettings() { echo 'loadSettings(company) exit'; exit; //load also income maps $settings = array(); if (Yii::$app->db->schema->getTableSchema('{{config}}') !== null) { Yii::$app->session['menu'] = Menu::buildUserMenu(); } //Yii::$app->session['settings'] = $settings; }
<?php $this->beginBody(); ?> <div class="wrap"> <?php NavBar::begin(['brandLabel' => '', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]); kartik\icons\Icon::map($this); ?> <a id="changeSidebarPos" class="btn btn-success btn-sm" data-toggle="tooltip" data-original-title="Show / Hide Sidebar" data-placement="bottom"> <?php echo kartik\icons\Icon::show('expand'); ?> </a> <?php echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-left'], 'items' => Menu::buildUserMenu()]); ?> <img width="100px" alt="logo" src="<?php echo yii\helpers\BaseUrl::base() . "/assets/img/logo.png"; ?> "> <?php NavBar::end(); ?> <div class="row"> <div id='mainPage' class="col-md-12"> <?php foreach (Yii::$app->session->getAllFlashes() as $key => $message) { echo yii\bootstrap\Alert::widget(['options' => ['class' => "alert alert-" . $key], 'body' => $message]); }