# ExtJS 404 im Backend

**URL:** https://forum.shopware.com/t/extjs-404-im-backend/39813
**Category:** Programmierung
**Created:** [14. September 2016 um 10:54 UTC](https://forum.shopware.com/t/extjs-404-im-backend/39813 "2016-09-14T10:54:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fionera](https://avatars.discourse-cdn.com/v4/letter/f/9fc348/32.png) [@fionera](https://forum.shopware.com/u/fionera)
#### Post date: [14. September 2016 um 10:54 UTC](https://forum.shopware.com/t/extjs-404-im-backend/39813/1 "2016-09-14T10:54:32Z")

</div>

Hallo zusammen,

ich arbeite gerade an einem Plugin und das erste mal mit Backendprogrammierung. Ich bekomme jedes mal ein 404 Fehler von der Seite wenn ich mein hinzugefügtes Menu Symbol klicke.

Als erstes mal die Fehlermeldung:

```
Ext.define('Shopware.apps.Index', {
extend:'Enlight.app.SubApplication',
bulkLoad: true,
loadPath: '/backend/Index/load',
controllers:[
'Main',
'Widgets',
'ErrorReporter',
'ThemeCacheWarmUp'
],
requires: [
'Shopware.container.Viewport'
],
views: [
'Main',
'Menu',
'Footer',
'Search',
'widgets.Window',
'widgets.Sales',
'widgets.Upload',
'widgets.Visitors',
'widgets.Orders',
'widgets.Notice',
'widgets.Merchant',
'widgets.News',
'widgets.Base',
'merchant.Window',
'themeCache.ThemeCacheWarmUp'
],
models: [
'Widget',
'WidgetSettings',
'Turnover',
'Batch',
'Customers',
'Visitors',
'Orders',
'News',
'Merchant',
'MerchantMail',
'ThemeCacheWarmUp'
],
stores: [
'Widget',
'WidgetSettings',
'ThemeCacheWarmUp'
]
});

```

&nbsp;

Das Menuitem habe ich folgendermaßen hinzugefügt:&nbsp;

```
        $this->createMenuItem(array(
            'label' => 'LABEL',
            'controller' => 'MyPlugin',
            'class' => 'sprite-application-block',
            'action' => 'Index',
            'active' => 1,
            'parent' => $this->Menu()->findOneBy(['label' => 'Inhalte'])
        ));

```

&nbsp;

Die app.js sieht folgender Maßen aus:&nbsp;

```
Ext.define('Shopware.apps.MyPlugin', {
    extend: 'Enlight.app.SubApplication',

    name: 'Shopware.apps.MyPlugin',

    loadPath: '{url action=load}',
    bulkLoad: true,

    controllers: ['Main'],

    views: [
        'list.Window',
        'list.List'
    ],

    models: ['Main'],
    stores: ['Main'],

    launch: function () {
        return this.getController('Main').mainWindow;
    }
});

```

&nbsp;

Könntet ihr mir erklären was das sein kann? Ich habe leider nichts darüber gefunden.
