phlexible/indexer-page-bundle

phlexible 索引页面包

安装: 402

依赖项: 3

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 1

开放问题: 0

类型:symfony-bundle

1.2.4 2017-10-05 09:28 UTC

This package is auto-updated.

Last update: 2024-09-08 06:47:01 UTC


README

此包提供了节点HTML输出的自动索引。需要PhlexibleIndexerBundle基础设施。

安装

  1. 使用composer下载PhlexibleIndexerPageBundle
  2. 启用包
  3. 清除symfony缓存

步骤 1: 使用composer下载PhlexibleIndexerPageBundle

通过运行以下命令添加PhlexibleIndexerPageBundle

$ php composer.phar require phlexible/indexer-page-bundle "~1.0.0"

Composer会将包安装到项目的vendor/phlexible目录中。

步骤 2: 启用包

在kernel中启用包

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Phlexible\Bundle\IndexerPageBundle\PhlexibleIndexerPageBundle(),
    );
}

步骤 3: 清除symfony缓存

如果您使用环境prod访问phlexible应用程序,请清除缓存

$ php app/console cache:clear --env=prod