Closed yosriMekni closed 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 ?
hi , oh i didnt noticed that sorry. yes i followed that docs but no chance :/
yeah. I see a mistake here.
Rename AppBundle\Resources\config.services.yml
-> AppBundle\Resources\config\services.yml
no changes in the admin panel , so strange :/
have you cleared your cache?
yes i cleared it , where i suppose to see the changes exactly ? maybe i'm seeing in some where else, excuse my english
*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();
}
/**
@param FrontendMenuBuilderEvent $event */ public function addFrontendMenuItems(FrontendMenuBuilderEvent $event) { $menu = $event->getMenu();
$menu->addChild('frontend') ->setLabel('Frontend Menu Item'); } }` its actually not loading the config.services.yml ! why ?! what can be the problem ! plz help