c33s-toolkit/layout-bundle

此包已被放弃,不再维护。未建议替代包。

为使用 c33s-toolkit/bootstrap3-bundle 的 Symfony 3 应用程序提供的基布局

安装: 79

依赖: 1

建议者: 0

安全: 0

类型:symfony-bundle

0.2.1 2017-10-08 23:13 UTC

This package is auto-updated.

Last update: 2022-02-01 13:10:16 UTC


README

Symfony 3 应用程序的基布局。可选择与 c33s-toolkit/bootstrap3-bundlesonata-project/page-bundlesonata-project/seo-bundle 集成。

安装

将以下内容添加到您的 composer.json

    "config": {
        "component-dir": "web/media/components",
        "component-baseurl": "media/components",
    },

安装 composer 包: composer require c33s-toolkit/layout-bundle

将束添加到您的 AppKernel.php

<?php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Symfony\Bundle\AsseticBundle\AsseticBundle(),
            new C33s\Toolkit\CoreConfigBundle\C33sToolkitCoreConfigBundle(),
            new C33s\Toolkit\LayoutBundle\C33sToolkitLayoutBundle(),
            new SunCat\MobileDetectBundle\MobileDetectBundle(),

src/Resources/config/defaults/ 复制默认的 asseticmobile_detect 配置以快速开始。