nitra/e-commerce-admin-textblockbundle

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

neP admin textblock bundle

安装: 308

依赖项: 0

建议者: 0

安全: 0

类型:symfony-bundle

dev-master 2014-10-09 15:13 UTC

This package is auto-updated.

Last update: 2018-04-08 17:39:58 UTC


README

描述

该插件旨在

  • 创建和编辑文本块

连接

  • composer.json
{
    ...   
    "require": {
        ...
        "nitra/e-commerce-admin-textblockbundle": "dev-master",
        ...
    }
    ...
}
  • app/AppKernel.php
<?php

use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;

class AppKernel extends Kernel
{
    //...
    public function registerBundles()
    {
        //...
        $bundles = array(
            //...
            new Nitra\TextBlockBundle\NitraTextBlockBundle(),
            //...
        );
        //...
        return $bundles;
    }
    //...
}
  • routing.yml
NitraTextBlockBundle:
    resource:    "@NitraTextBlockBundle/Resources/config/routing.yml"
    prefix:      /{_locale}/
    defaults:
        _locale: ru
    requirements:
        _locale: en|ru
  • menu.yml
textBlock:
    translateDomain: 'menu'
    route: Nitra_TextBlockBundle_TextBlock_list