PHP code example of geniv / nette-menu-content

1. Go to this page and download the library: Download geniv/nette-menu-content 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/ */

    

geniv / nette-menu-content example snippets


protected function createComponentMenuContent(MenuContent $menuContent): MenuContent
{
    // $menuContent->setTemplatePath(__DIR__ . '/templates/MenuContent.latte');
    // $menuContent->setTemplatePathByIdent('ident1', 'path1');
    // $menuContent->setTemplatePathByIdent('ident2', 'path2');
    // $menuContent->setIdLocale(null);
    return $menuContent;
}
json
"php": ">=7.0.0",
"nette/nette": ">=2.4.0",
"dibi/dibi": ">=3.0.0",
"geniv/nette-locale": ">=1.0.0",
"geniv/nette-general-form": ">=1.0.0"