Contao Bootstrap 扩展的核心

资助包维护!
dmolineus

安装数: 78,047

依赖项: 16

建议者: 0

安全: 0

星标: 16

关注者: 7

分支: 10

开放问题: 5

类型:contao-bundle


README

Version GitHub issues License Build Status Downloads

此扩展将 Bootstrap 4 集成到 Contao 中。

Contao-Bootstrap 是一个模块化集成。核心组件为其他组件提供基础设施。

功能

  • Bootstrap 环境
  • 配置系统
  • 模板预渲染和后渲染过滤器

变更日志

查看 变更日志

需求

  • PHP ^7.4 || ^8.0
  • Contao ^4.9

安装

管理版

当使用管理版时,安装包很简单。只需在 Contao 管理器中搜索包并安装,或者您可以使用 CLI。

# Using the contao manager
$ php contao-manager.phar.php composer require contao-bootstrap/core~2.0

# Using composer directly
$ php composer.phar require contao-bootstrap/core~2.0

Symfony 应用程序

如果您在没有 contao/manager-bundle 的情况下在 symfony 应用程序中使用 Contao,您必须手动注册以下捆绑包

class AppKernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Contao\CoreBundle\HttpKernel\Bundle\ContaoModuleBundle('metapalettes', $this->getRootDir()),
            new ContaoBootstrap\Core\ContaoBootstrapCoreBundle(),
        ];
    }
}