qobo / cakephp-menu
Menu plugin for CakePHP
Installs: 51 689
Dependents: 2
Suggesters: 0
Security: 0
Stars: 3
Watchers: 19
Forks: 0
Open Issues: 1
Type:cakephp-plugin
Requires
- qobo/cakephp-utils: ^13.0
Requires (Dev)
- qobo/cakephp-composer-dev: ^v1.0
- dev-master
- v16.4.2
- v16.4.1
- v16.4.0
- v16.3.6
- v16.3.5
- v16.3.4
- v16.3.3
- v16.3.2
- v16.3.1
- v16.3.0
- v16.2.0
- v16.1.1
- v16.1.0
- v16.0.2
- v16.0.1
- v16.0.0
- v15.1.0
- v15.0.0
- v14.0.0
- v13.4.0
- v13.3.0
- v13.2.0
- v13.1.0
- v13.0.2
- v13.0.1
- v13.0.0
- v12.0.1
- v12.0.0
- v11.2.5
- v11.2.4
- v11.2.3
- v11.2.2
- v11.2.1
- v11.2.0
- v11.1.0
- v11.0.4
- v11.0.3
- v11.0.2
- v11.0.1
- v11.0.0
- v10.1.4
- v10.1.3
- v10.1.2
- v10.1.1
- v10.1.0
- v10.0.0
- v9.2.0
- v9.1.1
- v9.1.0
- v9.0.0
- v8.1.1
- v8.1.0
- v8.0.2
- v8.0.1
- v8.0.0
- v7.1.2
- v7.1.1
- v7.1.0
- v7.0.0
- v6.0.0
- v5.0.0
- v4.0.1
- v4.0.0
- v3.0.1
- v3.0.0
- v2.2.1
- v2.2.0
- v2.1.1
- v2.1.0
- v2.0.1
- v2.0.0
- v1.2.0
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-dependabot/add-v2-config-file
- dev-task-17305-skip-icons-for-buttons
- dev-task-17610-use-icons-prefix
- dev-cakephp-v38
This package is auto-updated.
Last update: 2023-04-29 00:44:30 UTC
README
About
CakePHP 3+ plugin for managing application menus.
This plugin is developed by Qobo for Qobrix. It can be used as standalone CakePHP plugin, or as part of the project-template-cakephp installation.
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
composer require qobo/menu
Usage
Basic usage example - in the view
$menu = new Menu(); // Create menu item link $linkItem = new MenuItemLink(); $linkItem->setUrl('#'); $linkItem->setLabel(__('Edit')); $linkItem->setIcon('pencil'); $linkItem->setOrder(100); $menu->addMenuItem($linkItem); $separatorItem = new MenuItemSeparator(); $menu->addMenuItem($separatorItem); $postlinkItem = new MenuItemPostlink(); $postlinkItem->setUrl('#'); $postlinkItem->setLabel(__('Delete')); $postlinkItem->setIcon('trash'); $postlinkItem->setConfirmMsg(__('Are you sure to delete it?')); $postlinkItem->setOrder(130); $menu->addMenuItem($postlinkItem); $params = ['title' => 'Main Menu']; $render = new MainMenuRenderAdminLte($menu, $this); echo $render->render($params);