darvinstudio/darvin-menu-bundle

This bundle provides menu management functionality for Symfony-based applications.

Installs: 5 286

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 4

Forks: 0

Open Issues: 1

Type:symfony-bundle


README

This bundle provides menu management functionality for Symfony-based applications.

Usage

  1. Register menu:
# config/packages/darvin_menu.yaml
darvin_menu:
    menus:
        header: ~
  1. Render menu:
{{ render_esi(controller('darvin_menu.controller.menu', {
    'buildOptions':  {'menu': 'header', 'depth': 2},
    'renderOptions': {'template': 'menu/header.html.twig'},
})) }}

Extras