S
S
Sergey Belyakov2022-04-20 10:42:25
Nginx
Sergey Belyakov, 2022-04-20 10:42:25

How to load css on yii2 debug panel?

Good time! There is an api application, I connected the debug panel, it worked, but without styles. In the style paths in the head block, this is the code:

<link href="/admin/assets/455a4700/css/main.css" rel="stylesheet">

And of course nothing is displayed, what am I doing wrong?
Here is the config:
$config = [
    'id'                  => 'admin',
    'basePath'            => dirname(__DIR__),
//    'runtimePath'         => '@appRoot/logs/admin',
//    'runtimePath'         => '@admin',
    'controllerNamespace' => 'admin\controllers',
    'bootstrap'           => ['log', 'debug'],
    'modules'             => [
        'debug' => [
            'class' => 'yii\debug\Module',
            'allowedIPs' => ['*'],
        ],
    ],
    'params'              => [],
    'container'           => include __DIR__ . "/container.php",
    'components'          => [],
];


The assets folder has been created and there are temporary style files in it, the runtime folder is also there, all files are created there.

I open the debug panel in a separate window https://api.ru/admin/debug
And here is how it looks:
625fb83f3c290279298271.jpeg
625fb94d0f4e0686237261.jpeg
625fbaa25aa2e730985428.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question