PHP code example of getdevflow / menu-builder
1. Go to this page and download the library: Download getdevflow/menu-builder 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/ */
getdevflow / menu-builder example snippets
codex plugin:install getdevflow/menu-builder
use Plugin\MenuBuilder\Helper\NavMenu;
echo NavMenu::render('header-menu', [
'bootstrap' => 3,
'menu_class' => 'nav navbar-nav',
]);
echo $navigationRenderer->render('header-menu');