Repository navigation
BootstrapMenu
Viames Marino edited this page Oct 19, 2026
·
2 revisions
Pair\Html\BootstrapMenu extends Menu with Bootstrap-oriented rendering helpers.
Protected rendering methods:
renderDropdown(MenuEntry $entry): stringrenderSeparator(MenuEntry $entry): stringrenderSingle(MenuEntry $entry): string
use Pair\Html\BootstrapMenu;
$menu = new BootstrapMenu();
$menu->item('dashboard/default', 'Home', 'fa-house');
$menu->item('products/default', 'Products', 'fa-box');
echo $menu->render();- Uses
MenuEntryobjects to represent nodes. - Designed for Bootstrap HTML class conventions.
- Uses the inherited
Menu::item($url, $title, ...)andgroup(...)builders; there is noadd()method. -
render()returns entry markup. Supply the enclosing list and the application's matching CSS/JavaScript in the layout; constructing this class does not load Bootstrap or switchUiTheme.
Home · Setup · Configuration
Build with Pair 4
- Generator
- Controllers and responses
- Read models
- ActiveRecord and queries
- Forms and validation
- PairUI.js and HTML fragments
APIs and authentication
- API guide and CRUD
- Middleware and rate limits
- Users, sessions, and ACL
- Passkeys and social login
- Native mobile setup
Integrate and operate
- Integrations
- Runtime extensions and adapter keys
- Cache and cache stores
- Logs and observability
- PWA and push
- Packages and distribution
- Upgrade to v4