D
D
decenter2019-08-25 23:39:45
Yii
decenter, 2019-08-25 23:39:45

How to restore AdminLte 2 after updating YII2 to version 2.0.25?

Good afternoon!
After update on yii2 framework project? AdminLte template fell off.
Tried to reinstall via composer yii2-adminlte-asset "2.4" to no avail.
an error is thrown

Exception 'Error' with message 'Class 'dmstr\web\AdminLteAsset' not found' 

in C:\openserver\OSPanel\domains\yii2.loc\advanced\vendor\dmstr\yii2-adminlte-asset\example-views\yiisoft\yii2-app\layouts\main.php:25

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2019-08-25
@decenter

The error says that such a class does not exist.
1. reinstall yii2-adminlte-asset.
2. If the first does not help. Go to the pattern given in the second line. Copy it to your views and register the Asset class correctly. Should be \dmstr\web\AdminLteAsset::register($this);
Customize your template in the display, instead of the vendor.
Most likely this will help. Perhaps something else. The error is that it cannot find the class. If it does not work, write in the comments. Let's figure it out.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question