Sylius / Sylius-Docs

DEPRACATED. See Sylius/Sylius repository.
http://sylius.org
56 stars 99 forks source link

Sylius : add entity administrator to admin panel #434

Closed yosriMekni closed 8 years ago

yosriMekni commented 8 years ago

*excuse my english . I have created a new entity and i want to add it's adminisrator to admin panel in admin dashboard i've followed the steps in the sylius docs but no changes : AppBundle/Resources/config.services.yml:

`services: app.admin.menu_builder_listener: class: AppBundle\EventListener\MenuBuilderListener tags:

`<?php

namespace AppBundle\EventListener;

use Sylius\Bundle\UiBundle\Menu\Event\MenuBuilderEvent; use Sylius\Bundle\WebBundle\Event\MenuBuilderEvent as FrontendMenuBuilderEvent;

class MenuBuilderListener { /* * @param MenuBuilderEvent $event / public function addBackendMenuItems(MenuBuilderEvent $event) { $menu = $event->getMenu();

$menu->addChild('backend_main')
    ->setLabel('Test Backend Main');

}

/**

CoderMaggie commented 8 years ago

Hi! Why did you open this issue here? It's an abandoned repo.

Are you following these docs -> http://docs.sylius.org/en/latest/customization/menu.html ?

yosriMekni commented 8 years ago

hi , oh i didnt noticed that sorry. yes i followed that docs but no chance :/

CoderMaggie commented 8 years ago

yeah. I see a mistake here.

Rename AppBundle\Resources\config.services.yml -> AppBundle\Resources\config\services.yml

yosriMekni commented 8 years ago

no changes in the admin panel , so strange :/

CoderMaggie commented 8 years ago

have you cleared your cache?

yosriMekni commented 8 years ago

yes i cleared it , where i suppose to see the changes exactly ? maybe i'm seeing in some where else, excuse my english