双元素/简单可排序包

Symfony 3 可排序包

1.1.4 2022-09-15 21:17 UTC

This package is not auto-updated.

Last update: 2024-09-28 05:18:59 UTC


README

Symfony 3 为 CMS JELLINEK 的可排序包

  1. 首先将此包下载到您的项目中。首选方法是使用 Composer 包管理器

    $ composer require twin-elements/sortable-bundle

    注意:如果您尚未安装 Composer,请查看[安装指南][2]。

    注意:如果您不使用 Composer,请手动将 SortableBundle 添加到自动加载器。

  2. 将此包添加到应用程序的内核中

    // app/AppKernel.php
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new TwinElements\SortableBundle\TwinElementsSortableBundle(),
            // ...
        );
    }
  3. 添加到 routing.yml

    # app/config/routing.yml
    twin_elements_sortable:
            resource: "@TwinElementsSortableBundle/Controller/"
            type:     annotation
            prefix:   /

使用方法

...