PHP code example of radotch / cakephp-menu-manager
1. Go to this page and download the library: Download radotch/cakephp-menu-manager 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/ */
radotch / cakephp-menu-manager example snippets
$this->addPlugin('MenuManager', ['autoload' => true, 'routes' => true]);
$plugin = new \MenuManager\Plugin(array $config = [])
->disable('bootstrap')
->enable('routes');
$this->addPlugin($plugin)
$language = [
'bg_BG' => 'Bulgarian',
'en' => 'English',
'en_US' => 'English (United States)'
];
Configure::write('MenuManager.Translation.Languages', $languages);