How to set up CakePHP with Twitter Bootstrap

I found some problems with Twitter Bootstrap in Cakephp and setting cake.generic.css

Most manuals say using both methods: cake.generic.css and bootstrap.css at the same time, although there are some conflicts between the styles.

On the other hand, I found a few comments on the net, saying that after installing bootstrap, you do not need to use cake.generic.css. ( http://cakephp.1045679.n5.nabble.com/What-s-the-best-way-to-get-Twitter-Bootstrap-into-Cake-td5712643.html , http://thehappydeveloper.wordpress.com / 2012/02/24 / setting-up-twitter-bootstrap-with-cakephp / )

What is the best practice for setting up Twitter bootstrap using CakePHP?

+4
source share
2 answers

Working with Twitter Bootstrap is no different than working with any other frontend framework. In this case, you do not need to keep css by default if you are not going to use it. Just change your layout to include css / js files, as usual, and create your elements so that Bootstrap expects you to do this.

However, since no one likes to reinvent the wheel, I would suggest using the CakePHP plugin, which handles everything for you, here is one

+2
source

Bootstrap 3 FormHelper, . . / http://bs3form.qtsdev.com.

Bs3Form BoostCakeForm ( , ). : // , , , , inputDefaults , , / ..

0

All Articles