bmilesp / bootstrap_extend
Classes and helpers that extend CakePHP for a simple and powerful drop-in solution for Twitter Bootstrap
Installs: 192
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Type:cakephp-plugin
Requires
- composer/installers: ~1.0
README
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'), );