bmilesp/bootstrap_extend
Composer 安装命令:
composer require bmilesp/bootstrap_extend
包简介
Classes and helpers that extend CakePHP for a simple and powerful drop-in solution for Twitter Bootstrap
README 文档
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'), );
统计信息
- 总下载量: 193
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2014-05-21