nitra / e-commerce-admin-menubundle
This package is abandoned and no longer maintained.
No replacement package was suggested.
nep admin tree menu bundle
dev-master
2014-11-04 10:00 UTC
This package is auto-updated.
Last update: 2018-04-08 17:34:33 UTC
README
Описание
данный бандл предназначен для:
- создания и редактирования меню на сайте
Подключение
- composer.json
{
...
"require": {
...
"nitra/e-commerce-admin-menubundle": "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\MenuBundle\NitraMenuBundle(),
//...
);
//...
return $bundles;
}
//...
}
- routing.yml
NitraMenuBundle:
resource: "@NitraMenuBundle/Resources/config/routing.yml"
prefix: /{_locale}/
defaults:
_locale: ru
requirements:
_locale: en|ru
- menu.yml
menu:
translateDomain: 'menu'
route: Nitra_MenuBundle_Menu_list