Tags bundle

dev-master / 2.0.x-dev 2018-02-01 19:36 UTC

This package is not auto-updated.

Last update: 2024-05-23 17:32:11 UTC


README

Требования:

  • php 7
  • symfony 3.2

Установка

  1. Прописать пакет и ссылку на репозиторий в composer.json
{
    // ...
    "require": {
        // ...
        "SmartInformationSystems/tags-bundle": "dev-master"
    },
    "repositories": [
        {
            "type" : "vcs",
            "url" : "https://github.com/SmartInformationSystems/TagsBundle.git"
        }
    ]
}
  1. Включить бандл в app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new SmartInformationSystems\FileBundle\SmartInformationSystemsTagsBundle(),
            // ...
        );
    }
}
  1. Включить необходимые шаблоны
twig:
    form_themes:
        - 'SmartInformationSystemsTagsBundle:form:fields.html.twig'
  1. Добавить настроки в app/config/routing.yml
smart_information_systems.tags:
    resource: "@SmartInformationSystemsTagsBundle/Resources/config/routing.yml"
    prefix: /tags

Использование