PHP code example of altamash80 / laminas-mvc-bootstrap-menu
1. Go to this page and download the library: Download altamash80/laminas-mvc-bootstrap-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/ */
altamash80 / laminas-mvc-bootstrap-menu example snippets
return [
'modules' => [
// ...
'Laminas\Navigation', // <-- Add this line if not present
'LRPHPT', // <-- Add this line in your root_path/config/modules.config.php file
'Application',
],
];
<?=$this->navigation('default')
->bootstrapMenu()
->setUlClass('navbar-nav')
// Optional setting to use with LmcRbac route guard.
->setAuthorizationService($this->LmcRbacAuthorizationServiceHelper())
;
<?=$this->navigation('default')
->hcOffCanvasMenu()
->setUlClass('first-nav')
// Optional setting to use with LmcRbac route guard.
->setAuthorizationService($this->LmcRbacAuthorizationServiceHelper())
;
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.