Q
Q
Qwyu_4iLofK2021-10-15 21:53:16
Yii
Qwyu_4iLofK, 2021-10-15 21:53:16

Why main page of yii2 basic template without styles?

In console

127.0.0.1/:10 GET http://127.0.0.1:8101/assets/ca32838f/css/bootstrap.css net::ERR_ABORTED 404 (Not Found)
127.0.0.1/:87 GET http://127.0.0.1:8101/assets/369e9b47/yii.js net::ERR_ABORTED 404 (Not Found)
127.0.0.1/:88 GET http://127.0.0.1:8101/assets/ca32838f/js/bootstrap.bundle.js net::ERR_ABORTED 404 (Not Found)
127.0.0.1/:86 GET http://127.0.0.1:8101/assets/505a380e/jquery.js net::ERR_ABORTED 404 (Not Found)
127.0.0.1/:87 GET http://127.0.0.1:8101/assets/369e9b47/yii.js net::ERR_ABORTED 404 (Not Found)
127.0.0.1/:88 GET http://127.0.0.1:8101/assets/ca32838f/js/bootstrap.bundle.js net::ERR_ABORTED 404 (Not Found)

616c4dde633cf843398239.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
Qwyu_4iLofK, 2021-10-17
@Qwyu_4iLofK

$config['components'] = [
    'assetManager' => [
        'appendTimestamp' => true,
    ],
];

/config/web.php
in the console the error is gone.
but there was this error:
Invalid Configuration – yii\base\InvalidConfigException
User::identityClass must be set.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question