How to Upgrade to Bootstrap 4 in Yii2 Framework

Опубликовано: 26 Октябрь 2020
на канале: Lionel The Tech Lead
3,140
30

Sorry for the peaks in the audio!
I recently had a yii2 project that I wanted to use bootstrap 4. It's simple but there's no how-to-video. So here are the steps:


1. Install the extension
php composer.phar require --prefer-dist yiisoft/yii2-bootstrap4

2. Update The Asset Path
assets/appasset.php

3. Update the Widget Path (Layout)
Use boostrap4 for all widgets

Adjust the navbar. Play around with the various nav classes.

4. Delete the CSS file
Has some outdated CSS that will make your view weird.


Смотрите видео How to Upgrade to Bootstrap 4 in Yii2 Framework онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Lionel The Tech Lead 26 Октябрь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,140 раз и оно понравилось 30 людям.