Bootstrap Extend Plugin
A Simple Yet Configurable Drop-In Solution to Add Twitter Bootstrap to Your Project
Installation
[Using Composer]
View on Packagist, and copy the json snippet for the latest version into your project's composer.json
. Eg, v. 1.0.0 would look like this:
{
"require": {
"bmilesp/bootstrap_extend": ""2.6.x-dev"
}
}
[Manual]
- Download this: https://github.com/bmilesp/BootstrapExtend/archive/master.zip
- Unzip that download.
- Copy the resulting folder to
app/Plugin
- Rename the folder you just copied to `BootstrapExtend
[GIT Clone]
In your Plugin
directory type:
git clone -b master git://github.com/bmilesp/BootstrapExtend.git Upload
Enable plugin
Add following lines in yout app/Config/bootstrap.php file
CakePlugin::load('BootstrapExtend', array('bootstrap' => true));
Usage
Add the following elements into your layout somewhere within the tags:
<?php
echo $this->element('BootstrapExtend.layout_requirements/external_resources');
echo $this->element('BootstrapExtend.layout_requirements/external_resources_overrides');
?>
Add the following to the end of the layout before the closing tag:
<?php echo $this->element('BootstrapExtend.layout_requirements/ext_block'); ?>
In your AppController, overload the Form Helper with the following:
public $helpers = array(
'Form' => array('className' => 'BootstrapExtend.BootstrapExtForm'),
);