PHP code example of darkeum / darklyy-menu
1. Go to this page and download the library: Download darkeum/darklyy-menu 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/ */
darkeum / darklyy-menu example snippets
Menu::macro('main', function () {
return Menu::new()
->url('/', 'Главная')
->route('feedback', 'Контакты')
->action('PageController@about', 'О нас')
->setActiveFromRequest();
});