![]() |
CI4 and Bootstrap - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: CI4 and Bootstrap (/showthread.php?tid=74425) |
CI4 and Bootstrap - bustersg - 09-21-2019 Is there any built in component for bootstrap 4 such that you can activate conveniently in <head>? Or is still same as CI3 where one has to create assets/css folders in folder public Code: <!-- Bootstrap core CSS --> RE: CI4 and Bootstrap - ciadmin - 09-21-2019 Like CI3, CI4 is as CSS-framework neutral as it can be. If you use a template system, then the links to Bootstrap4 (or whatever) could be specified just once. See https://github.com/codeigniter4projects/website2/tree/develop/app/Views/theme for an example. RE: CI4 and Bootstrap - MGatner - 09-22-2019 My Assets library can help with this: https://github.com/tattersoftware/codeigniter4-assets Right now you need to setup each of the pieces, but the next major version will have built-in support for some of the major popular packages. composer require tatter/assets composer require twbs/bootstrap4 For an example of an automated version of this right now see: https://github.com/tattersoftware/headquarters Pay attention to composer.json, post-update.sh, app/Config/Assets.php, and app/Views/templates/header.php |