diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-09-07 20:19:28 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-09-07 20:19:28 +0400 |
commit | a514151cec2613408412c6bbe0030df2c56b8277 (patch) | |
tree | 56251a0813e53429b979c821900114a302655e06 /plugins/ExamplePlugin | |
parent | a921bb334f1e7c6bc1d4d12628f9ad1a89dbd6a2 (diff) |
updated the comments in the menu template
Diffstat (limited to 'plugins/ExamplePlugin')
-rw-r--r-- | plugins/ExamplePlugin/Menu.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/ExamplePlugin/Menu.php b/plugins/ExamplePlugin/Menu.php index b1fcde4eea..3fd347aee1 100644 --- a/plugins/ExamplePlugin/Menu.php +++ b/plugins/ExamplePlugin/Menu.php @@ -22,13 +22,13 @@ class Menu extends \Piwik\Plugin\Menu { public function configureReportingMenu(MenuReporting $menu) { - // reuse an existing category - // $menu->addVisitorsItem('Report 1', $this->urlForAction('report1'), $orderId = 30); - // $menu->addActionsItem('Report 1', $this->urlForAction('report1'), $orderId = 30); + // reuse an existing category. Execute the showList() method within the controller when menu item was clicked + // $menu->addVisitorsItem('Report 1', $this->urlForAction('showList'), $orderId = 30); + // $menu->addActionsItem('Report 1', $this->urlForAction('showList'), $orderId = 30); // or create a custom category 'UI Framework' // $menu->addItem('UI Framework', '', $this->urlForDefaultAction(), $orderId = 30); - // $menu->addItem('UI Framework', 'Report 1', $this->urlForAction('report1'), $orderId = 30); + // $menu->addItem('UI Framework', 'Report 1', $this->urlForAction('showList'), $orderId = 30); } public function configureAdminMenu(MenuAdmin $menu) @@ -48,8 +48,8 @@ class Menu extends \Piwik\Plugin\Menu public function configureUserMenu(MenuUser $menu) { - // reuse an existing category - // $menu->addManageItem('My User Item', $this->urlForDefaultAction(), $orderId = 30); + // reuse an existing category. Execute the showList() method within the controller when menu item was clicked + // $menu->addManageItem('My User Item', $this->urlForAction('showList'), $orderId = 30); // $menu->addPlatformItem('My User Item', $this->urlForDefaultAction(), $orderId = 30); // or create a custom category |