DEPRECATION NOTICE: This CakePHP 2.x plugin is deprecated and will most likely not be updated.
Twitter Bootstrap packaged as a plugin.
In your project composer.json
file:
{
"require": {
"chronon/bootstrap": "*"
}
}
This will install the plugin into Plugin/Bootstrap
.
Using git:
git clone git@github.com:chronon/CakePHP-Bootstrap-Plugin.git APP/Plugin/Bootstrap
In your app's Config/bootstrap.php
:
<?php
CakePlugin::loadAll(array(
'Bootstrap'
));
In your layout:
<?php
echo $this->Html->css(array(
'Bootstrap.bootstrap.min.css',
'Bootstrap.bootstrap-responsive.min.css'
));
<?php
echo $this->Html->script(array(
'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js',
'Bootstrap.bootstrap.min.js'
));