# backend plugin menuitem zeigt controller statt label

**URL:** <https://forum.shopware.com/t/backend-plugin-menuitem-zeigt-controller-statt-label/13714>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [12. Juni 2013 um 17:34 UTC](https://forum.shopware.com/t/backend-plugin-menuitem-zeigt-controller-statt-label/13714 "2013-06-12T17:34:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pino](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/pino/32/14373_2.png) [@pino](https://forum.shopware.com/u/pino)\
**Post date:** [12. Juni 2013 um 17:34 UTC](https://forum.shopware.com/t/backend-plugin-menuitem-zeigt-controller-statt-label/13714/1 "2013-06-12T17:34:22Z")

</div>

hi zusammen, ich raff es nicht. warum wird mir beim backend menü nicht der name angezeigt, sondern der controller. mein install: ` $item = $this-\>createMenuItem( array( 'label' =\> 'MenuItemName', 'class' =\> '', 'active' =\> 1, 'controller' =\> 'myPlugin', 'action' =\> 'Index', 'parent' =\> $this-\>Menu()-\>findOneBy('label', 'Einstellungen'), 'style' =\> '', 'description' =\> '' ) ); ` als navigation bekomme ich „myPlugin“ statt „MenuItemName“, warum? in s\_core\_menu ist alle richtig eingetragen.

---

<div class="post-metadata">

**Author:** ![Tr0nYx](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@Tr0nYx](https://forum.shopware.com/u/Tr0nYx)\
**Post date:** [12. Juni 2013 um 18:57 UTC](https://forum.shopware.com/t/backend-plugin-menuitem-zeigt-controller-statt-label/13714/2 "2013-06-12T18:57:45Z")

</div>

` $this-\>createMenuItem(array( 'label' =\> 'MenuItemName', 'controller' =\> 'myPlugin', 'class' =\> 'sprite-star', 'action' =\> 'Index', 'active' =\> 1, 'parent' =\> $this-\>Menu()-\>findOneBy('label', 'Artikel') )); ` versuch mal so, damit gehts bei mir 🙂

---

<div class="post-metadata">

**Author:** ![pino](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/pino/32/14373_2.png) [@pino](https://forum.shopware.com/u/pino)\
**Post date:** [12. Juni 2013 um 19:26 UTC](https://forum.shopware.com/t/backend-plugin-menuitem-zeigt-controller-statt-label/13714/3 "2013-06-12T19:26:40Z")

</div>

hab den fehler gefunden: ` 'action' =\> 'Index' ` in ` 'action' =\> 'index' ` also lowercase 😉

---

<div class="post-metadata">

**Author:** ![Tr0nYx](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@Tr0nYx](https://forum.shopware.com/u/Tr0nYx)\
**Post date:** [12. Juni 2013 um 19:58 UTC](https://forum.shopware.com/t/backend-plugin-menuitem-zeigt-controller-statt-label/13714/4 "2013-06-12T19:58:36Z")

</div>

dann ist deine IndexAction auch lowercase imho 😉

---

<div class="post-metadata">

**Author:** ![weeza](https://avatars.discourse-cdn.com/v4/letter/w/a587f6/32.png) [@weeza](https://forum.shopware.com/u/weeza)\
**Post date:** [1. November 2016 um 08:02 UTC](https://forum.shopware.com/t/backend-plugin-menuitem-zeigt-controller-statt-label/13714/5 "2016-11-01T08:02:04Z")

</div>

> [@pino schrieb:](https://forum.shopware.com/profile/1734/pino "pino")
> 
> hab den fehler gefunden:
> 
> ‚action‘ =\> ‚Index‘
> 
> in
> 
> ‚action‘ =\> ‚index‘
> 
> also lowercase ![;)](https://dub1.discourse-cdn.com/flex013/resources/emoji/wink.png ";)")

Mit der Groß-/kleinschreibung hat die gleiche Auswirkung in der menu.xml. – Hat mein Problem ebenfalls gelöst! - Danke!
