]> gitweb.erp-flowers.ru Git - yii-erp24/.git/commitdiff
fix menu
authorAlexander Smirnov <fredeom@mail.ru>
Mon, 11 Mar 2024 15:00:22 +0000 (18:00 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Mon, 11 Mar 2024 15:00:22 +0000 (18:00 +0300)
erp24/views/layouts/main.php
erp24/web/index.php

index b81a21acaf72e3a5ced04340ad70b7d6bc54f1ca..14e6d7e4b086ba8842ed88521344d76f35a24300 100755 (executable)
@@ -44,15 +44,15 @@ app\assets\JQueryPluginsAsset::register($this); /** @TODO удалить пос
                             <img src="https://erp.bazacvetov24.ru/i/dostavka-cvetov.svg" class="header-brand-img darkmobile-logo" alt=" logo">
                         </a>
                     </div>
-                    <?php if (isset(Yii::$app->params['API2_TOKEN'])): ?>
+                    <?php //if (isset(Yii::$app->params['API2_TOKEN'])): ?>
                         <div id="main_menu_id"></div>
                         <?php $this->render('api2_menu.php') ?>
-                    <?php else: ?>
+                    <?php /* else: ?>
                         <?php if ($this->beginCache('menu_' . $_SESSION['admin_id'])): ?>
                             <?php $this->render('menu.php'); ?>
                             <?php $this->endCache(); ?>
                         <?php endif; ?>
-                    <?php endif; ?>
+                    <?php endif; */ ?>
                 </aside>
                 <div class="app-content main-content">
                     <?= $this->render('header.php'); ?>
index c3ac62eefceec64a593705d582c2685ddadd2346..7c1d232aa9b00f47e242367fd94439e1ebd217d7 100644 (file)
@@ -14,7 +14,7 @@ Yii::setAlias('@dist', dirname(__DIR__) . '/dist');
 
 $app = (new yii\web\Application($config));
 
-$app->params['API2_TOKEN'] = $app->db->createCommand(
-    'SELECT access_token FROM api_user WHERE "login"=\'erp\' LIMIT 1;')->queryAll()[0]['access_token'] ?? null;
+//$app->params['API2_TOKEN'] = $app->db->createCommand(
+//    'SELECT access_token FROM api_user WHERE "login"=\'erp\' LIMIT 1;')->queryAll()[0]['access_token'] ?? null;
 
 $app->run();