PHP code example of the-cocktail / sulu-megamenu-bundle

1. Go to this page and download the library: Download the-cocktail/sulu-megamenu-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

the-cocktail / sulu-megamenu-bundle example snippets



// config/bundles.php
return [
    // ...
    TheCocktail\Bundle\MegaMenuBundle\SuluMegamenuBundle::class => ['all' => true],       
    // ...
];
twig
   {{ sulu_megamenu_render('header')  }}
twig
   {{ sulu_megamenu_render('header', 'menu/header.html.twig')  }}
twig
   {{ sulu_megamenu_render('header', 'menu/header.html.twig', request.webspaceKey, app.request.locale)  }}