• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI4 and Bootstrap

#1
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 -->
    <link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">
Reply

#2
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.
Reply

#3
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
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.