# Backend Plugin Entwicklung

**URL:** <https://forum.shopware.com/t/backend-plugin-entwicklung/8096>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [21. August 2012 um 16:11 UTC](https://forum.shopware.com/t/backend-plugin-entwicklung/8096 "2012-08-21T16:11:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timothy](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@Timothy](https://forum.shopware.com/u/Timothy)\
**Post date:** [21. August 2012 um 16:11 UTC](https://forum.shopware.com/t/backend-plugin-entwicklung/8096/1 "2012-08-21T16:11:25Z")

</div>

Guten Tag, ich habe das Problem das ich immer wenn ich mein im Backend Menu erstellten Link anklicke der Fehler kommt “Controller kann nicht geladen werden”. Ich finde den Fehler aber nicht ich habe es jetzt schon mit vorhanden Plugins verglichen oder im Forum geschaut aber es möchte nicht… Bootstrap: ` $event = $this-\>createEvent( 'Enlight\_Controller\_Dispatcher\_ControllerPath\_Backend\_Test', 'onGetControllerPathBackend' ); $this-\>subscribeEvent($event); $parent = $this-\>Menu()-\>findOneBy('label', 'Inhalte'); $item = $this-\>createMenuItem(array( 'label' =\> 'Test Reiter/Link', 'onclick' =\> 'openAction(\'Test\');', 'class' =\> 'ico2 table\_plus', 'active' =\> 1, 'parent' =\> $parent, 'style' =\> 'background-position: 5px 5px;' )); $this-\>Menu()-\>addItem($item); $this-\>Menu()-\>save(); return true; ` die Bootstrap Funktion ist auch simple: ` return dirname(\_\_FILE\_\_).'/Test.php'; ` Der Controller hat auch schon ein index sowie ein Skeleton. Machen ich etwas offensichtliches falsch? Shopware 3.5.6 MfG Timothy

---

<div class="post-metadata">

**Author:** ![Stefan\_Hamann](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@Stefan\_Hamann](https://forum.shopware.com/u/Stefan_Hamann)\
**Post date:** [21. August 2012 um 22:43 UTC](https://forum.shopware.com/t/backend-plugin-entwicklung/8096/2 "2012-08-21T22:43:27Z")

</div>

Stell mal den Quellcode vom Controller ein - hast du dort eine skeletonAction und auch auch eine skeleton.tpl, wo die Fenster-Properties definiert werden?

---

<div class="post-metadata">

**Author:** ![Timothy](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@Timothy](https://forum.shopware.com/u/Timothy)\
**Post date:** [22. August 2012 um 10:46 UTC](https://forum.shopware.com/t/backend-plugin-entwicklung/8096/3 "2012-08-22T10:46:06Z")

</div>

` class Shopware\_Controllers\_Backend\_Test extends Enlight\_Controller\_Action { public function init() { $this-\>View()-\>addTemplateDir(dirname(\_\_FILE\_\_)."/Views/"); } public function indexAction() { $this-\>View()-\>loadTemplate("backend/plugins/Test/index.tpl"); } public function skeletonAction() { $this-\>View()-\>loadTemplate("backend/plugins/Test/skeleton.tpl"); } public function sometestAction(){ $this-\>View()-\>foo = 'bar'; return $this-\>forward('index'); } } ` ich habe auch mal das Beispiel aus dem wiki versucht leider ergebnislos da bekomm ich es noch nicht einmal als Plugin installiert 😕 MfG Timothy

---

<div class="post-metadata">

**Author:** ![Stefan\_Hamann](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@Stefan\_Hamann](https://forum.shopware.com/u/Stefan_Hamann)\
**Post date:** [22. August 2012 um 10:51 UTC](https://forum.shopware.com/t/backend-plugin-entwicklung/8096/4 "2012-08-22T10:51:50Z")

</div>

Welche Shopware-Version verwendest du?

---

<div class="post-metadata">

**Author:** ![Timothy](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@Timothy](https://forum.shopware.com/u/Timothy)\
**Post date:** [22. August 2012 um 11:43 UTC](https://forum.shopware.com/t/backend-plugin-entwicklung/8096/5 "2012-08-22T11:43:39Z")

</div>

Shopware 3.5.6
