M
M
Mors Clamor2019-10-07 18:09:45
Yii
Mors Clamor, 2019-10-07 18:09:45

How to make Yii2 and Bootstrap4 friends?

Hello again! I know that out of the box Yii with 4 bootstrap does not work, I found some extension similar to the official one from grozzzny, connected it to Asset

...
    public $depends = [
        'yii\web\YiiAsset',
        'grozzzny\depends\bootstrap4\Bootstrap4Asset',
        'grozzzny\depends\bootstrap4\Bootstrap4PluginAsset',
    ];

Стили стали работать ближе к тому, что нужно, но имеется ряд очень существенных поломок.
Без Yii:
5d9b54e5ae600280505651.png
C Yii:
5d9b54f7bcd6e733720629.png
Начиная с отступов, заканчивая шрифтами. Подключенные стили все абсолютно те же самые. Есть ли решение проблемы?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bay, 2019-10-07
@66demon666

replace
"yiisoft/yii2-bootstrap":
with
"yiisoft/yii2-bootstrap4": "~2.0.6",
this is out of the box solution. in principle ceased to be buggy. I'm currently using it, but bootstrap with scss is my own.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question