cakephp 3 中的配置助手 bootstrap 4

问题描述 投票:0回答:2

我已经通过composer安装了cakephp插件twbs/bootstrap

composer require twbs/bootstrap:4.0.0

已成功加载并加载到

bootstrap.php

Pugin::loadAll();

接下来的设置是修改助手, 当我在

elboletaire/twbs-cake-plugin
中查看配置助手 bootstrap3 时 设置助手看起来像

//in AppController.php
public $helpers =[
'Less.Less',
'BootstrapUI.Form',
'BootstrapUI.Html',
'BootstrapUI.Flash',
'BootstrapUI.Paginator'
];

并将它们加载到

AppView.php

public function initialize()
{
  $this->loadHelper('Less', ['className' => 'Less.Less']);
  $this->loadHelper('Html', ['className' => 'BootstrapUI.Html']);
  $this->loadHelper('Flash', ['className' => 'BootstrapUI.Flash']);
  $this->loadHelper('Form', ['className' => 'BootstrapUI.Form']);
  $this->loadHelper('Paginator', ['className' = 'BootstrapUI.Paginator']);
}

问题是,配置助手 bootstrap4 在哪里,因为我是新手,对结合了 cakephp 3.5.11 的 twitter bootstrap4 很感兴趣,感谢任何人来帮助我

php cakephp twitter-bootstrap-4 cakephp-3.x
2个回答
2
投票

twbs/bootstrap
不是 CakePHP 插件,它只是 Bootstrap。
elboletaire/twbs-cake-plugin
一个CakePHP插件,目前还不支持Bootstrap 4。

https://github.com/elboletaire/twbs-cake-plugin/issues/6

FriendsOfCake/bootstrap-ui
可能很快就会准备好 Bootstrap 4,所以请密切关注。

https://github.com/FriendsOfCake/bootstrap-ui/pull/207


0
投票

对于最新版本的 Bootstrap 4 插件: 请参阅https://github.com/FriendsOfCake/bootstrap-ui/tree/develop 虽然它是开发版本,但对我来说效果很好。

更新 发布了 Bootstrap 4 插件:https://github.com/FriendsOfCake/bootstrap-ui/tree/3.x

© www.soinside.com 2019 - 2024. All rights reserved.