CI4 and Bootstrap |
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 -->
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/...iews/theme for an example.
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 |
Welcome Guest, Not a member yet? Register Sign In |