How to Upgrade to Bootstrap 4 in Yii2 Framework

Published: 26 October 2020
on channel: 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.


Watch video How to Upgrade to Bootstrap 4 in Yii2 Framework online without registration, duration hours minute second in high quality. This video was added by user Lionel The Tech Lead 26 October 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,14 once and liked it 3 people.