🌈 Bootstrap plugin and bake template for CakePHP
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
composer require maymeow/cake-bootstrap
Copy configuration file
cp vendor/maymeow/cake-bootstrap/config/cake_bootstrap.php config/cake_bootstrap.php
and load it in your bootstrap config file
Configure::load('cake_bootstrap', 'default', false);
Load helpers in you AppView
$this->loadHelper('Form', [
'templates' => 'CakeBootstrap.bootstrap_form'
]);
$this->loadHelper('CakeBootstrap.Bootstrap');
Run from command line
bin/cake bake template <YourModel> --theme CakeBootstrap