nitra/e-commerce-admin-cuponbundle

This package is abandoned and no longer maintained. No replacement package was suggested.

nep admin cupon bundle

Installs: 48

Dependents: 0

Suggesters: 0

Security: 0

Type:symfony-bundle

dev-master 2014-08-28 08:15 UTC

This package is not auto-updated.

Last update: 2018-05-06 20:21:26 UTC


README

Описание

данный бандл предназначен для:

  • создания купонов на скидку

Подключение

  • composer.json
{
    ...   
    "require": {
        ...
        "nitra/e-commerce-admin-cuponbundle": "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\CuponBundle\NitraCuponBundle(),
            //...
        );
        //...
        return $bundles;
    }
    //...
}
  • routing.yml
nitra_cupon:
    resource:    "@NitraCuponBundle/Resources/config/routing.yml"
    prefix:      /{_locale}/
    defaults:
        _locale: ru
    requirements:
        _locale: en|ru
  • menu.yml
cupon:
    translateDomain: 'menu'
    route: Nitra_CuponBundle_Cupon_list

Подключение стилей для genemu_jqueryautocomplete_document

{# app/Resources/views/base_admin.html.twig #}
{% block stylesheets %}
    {{ parent() }}
    <link rel="stylesheet" href="{{ asset('components/jquery-ui/themes/ui-lightness/jquery-ui.min.css') }}" type="text/css" media="all" />
{% endblock stylesheets %}