# Bootstrap an cakephp 4

**URL:** <https://discourse.cakephp.org/t/bootstrap-an-cakephp-4/7639>\
**Category:** Need Help\
**Created:** [April 11, 2020, 6:18am UTC](https://discourse.cakephp.org/t/bootstrap-an-cakephp-4/7639 "2020-04-11T06:18:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![snelledre](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@snelledre](https://discourse.cakephp.org/u/snelledre)\
**Post date:** [April 11, 2020, 6:18am UTC](https://discourse.cakephp.org/t/bootstrap-an-cakephp-4/7639/1 "2020-04-11T06:18:31Z")

</div>

I’m a newbee with Cakephp and learning a lot this week.  
Also the 2 traning sessions from cakedc are very good to follow.  
But what is the best way to implement bootstrap 4.  
If you build everything by hand yes then is it straightforward as with codeigniter or flask for example.  
The strenght of baking is that it’s do good work with very little work.  
But if i baked an app and i do change the styling and later i baked the app for the second time with changes i think i lose all the custom changes by hand right?  
For cakephp 4 are the tuts very minimal.  
So what is the best solution for this “implementing bootstrap 4 in cakephp 4 including baking”.  
Links for solutions are very welkom.  
In Holland we must stay at home so time and trying code is not a problem haha.

André

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [April 11, 2020, 3:48pm UTC](https://discourse.cakephp.org/t/bootstrap-an-cakephp-4/7639/2 "2020-04-11T15:48:38Z")

</div>

You can [create your own Bake theme](https://book.cakephp.org/bake/1/en/development.html#creating-a-bake-theme) to change the output you get.

---

<div class="post-metadata">

**Author:** ![anon81960487](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@anon81960487](https://discourse.cakephp.org/u/anon81960487)\
**Post date:** [April 19, 2020, 11:43pm UTC](https://discourse.cakephp.org/t/bootstrap-an-cakephp-4/7639/3 "2020-04-19T23:43:27Z")

</div>

If you don’t want to go through with the hassle of themes, you can just edit the [layout](https://book.cakephp.org/4/en/views.html#layouts). Simply go to /templates/layout, default.php, and setup [Bootstrap CDN](https://getbootstrap.com/). Go to the website, and for the top two, click the down arrow, copy the HTML version, and paste that in the head tags of the layout file.

---

<div class="post-metadata">

**Author:** ![snelledre](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@snelledre](https://discourse.cakephp.org/u/snelledre)\
**Post date:** [April 20, 2020, 7:15pm UTC](https://discourse.cakephp.org/t/bootstrap-an-cakephp-4/7639/4 "2020-04-20T19:15:59Z")

</div>

Thanx i gonna try it.

André
