alaxos / cakephp3-bootstrap-theme
Bootstrap bake templates for CakePHP 3
Package info
github.com/alaxos/cakephp3-bootstrap-theme
Language:HTML
Type:cakephp-plugin
pkg:composer/alaxos/cakephp3-bootstrap-theme
3.7.1
2019-05-31 13:13 UTC
Requires
- alaxos/cakephp3-libs: ^3.7
- cakephp/cakephp: ^3.7
Requires (Dev)
This package is auto-updated.
Last update: 2026-03-01 00:21:05 UTC
README
Bootstrap bake templates for CakePHP 3
General Features
- Bootstrap templates that use the enhanced FormHelper and some other tools from the alaxos/cakephp3-libs plugin
Installation
Adding the plugin
You can easily install this plugin using composer as follows:
composer require alaxos/cakephp3-bootstrap-theme
Enabling the plugin
After adding the plugin remember to load it in your config/bootstrap.php file.
The Alaxos plugin must be loaded as well.
Plugin::load('Alaxos', ['bootstrap' => true]); Plugin::load('Alaxos/BootstrapTheme');
Using the plugin with bake
$ ./bin/cake bake model Users --theme Alaxos/BootstrapTheme
Load Bootstrap CSS and JS
You may use the following functions to load Bootstrap CSS and JS in your template:
<?php echo $this->AlaxosHtml->includeBootstrapCSS(['block' => false]); echo $this->AlaxosHtml->includeBootstrapThemeCSS(['block' => false]); echo $this->AlaxosHtml->includeAlaxosCSS(['block' => false]); echo $this->AlaxosHtml->includeAlaxosJQuery(['block' => false]); echo $this->AlaxosHtml->includeAlaxosBootstrapJS(['block' => false]); ?>