56 lines
1.6 KiB
Markdown
56 lines
1.6 KiB
Markdown
|
# BoostCake
|
||
|
|
||
|
[![Build Status](https://travis-ci.org/slywalker/cakephp-plugin-boost_cake.png)](https://travis-ci.org/slywalker/cakephp-plugin-boost_cake)
|
||
|
[![Total Downloads](https://poser.pugx.org/slywalker/boost_cake/d/total.png)](https://packagist.org/packages/slywalker/boost_cake)
|
||
|
[![Latest Stable Version](https://poser.pugx.org/slywalker/boost_cake/v/stable.png)](https://packagist.org/packages/slywalker/boost_cake)
|
||
|
|
||
|
BoostCake is a plugin for CakePHP using Bootstrap
|
||
|
|
||
|
* [Bootstrap(2.3.2)](http://getbootstrap.com/2.3.2/)
|
||
|
* [Bootstrap(3.0.0)](http://getbootstrap.com/)
|
||
|
|
||
|
## Requirements
|
||
|
|
||
|
* CakePHP >= 2.3
|
||
|
* Bootstrap >= 2.3 (3.0 support)
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
Ensure require is present in composer.json. This will install the plugin into Plugin/BoostCake:
|
||
|
|
||
|
{
|
||
|
"require": {
|
||
|
"slywalker/boost_cake": "*"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
### Enable plugin
|
||
|
|
||
|
You need to enable the plugin your app/Config/bootstrap.php file:
|
||
|
|
||
|
`CakePlugin::load('BoostCake');`
|
||
|
|
||
|
If you are already using `CakePlugin::loadAll();`, then this is not necessary.
|
||
|
|
||
|
## Documentation
|
||
|
|
||
|
[BoostCake - Bootstrap Plugin for CakePHP](http://slywalker.github.io/cakephp-plugin-boost_cake/)
|
||
|
|
||
|
## Development Policy
|
||
|
|
||
|
More Simple! Simple! Simple!
|
||
|
|
||
|
* Develop only those that method's $options in FormHelper unable to solve.
|
||
|
* Don't develop ajax/js helper
|
||
|
|
||
|
If you want to simplify the options, you can develop WrapBoostCake plugin.
|
||
|
|
||
|
### What this plugin solves
|
||
|
|
||
|
* Replaces the `label` of checkboxes and radios
|
||
|
* Adds a wrapping `div` to inputs
|
||
|
* Adds content before and after `input`
|
||
|
* Adds error class in outer `div`
|
||
|
* Changes pagination tags
|
||
|
* Changes SessionHelper::flash()`s template
|