alaxos/cakephp3-bootstrap-theme
最新稳定版本:3.7.1
Composer 安装命令:
composer require alaxos/cakephp3-bootstrap-theme
包简介
Bootstrap bake templates for CakePHP 3
README 文档
README
Bootstrap bake templates for CakePHP 3
General Features
- Bootstrap templates that use the enhanced FormHelper and some other tools from the alaxos/cakephp3-libs plugin
Installation
Adding the plugin
You can easily install this plugin using composer as follows:
composer require alaxos/cakephp3-bootstrap-theme
Enabling the plugin
After adding the plugin remember to load it in your config/bootstrap.php file.
The Alaxos plugin must be loaded as well.
Plugin::load('Alaxos', ['bootstrap' => true]); Plugin::load('Alaxos/BootstrapTheme');
Using the plugin with bake
$ ./bin/cake bake model Users --theme Alaxos/BootstrapTheme
Load Bootstrap CSS and JS
You may use the following functions to load Bootstrap CSS and JS in your template:
<?php echo $this->AlaxosHtml->includeBootstrapCSS(['block' => false]); echo $this->AlaxosHtml->includeBootstrapThemeCSS(['block' => false]); echo $this->AlaxosHtml->includeAlaxosCSS(['block' => false]); echo $this->AlaxosHtml->includeAlaxosJQuery(['block' => false]); echo $this->AlaxosHtml->includeAlaxosBootstrapJS(['block' => false]); ?>
统计信息
- 总下载量: 2.84k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-15