Quantcast
Channel: Programmierung - Shopware Community Forum
Viewing all articles
Browse latest Browse all 2871

ExtJS 404 im Backend

$
0
0

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'
]
});

 

Das Menuitem habe ich folgendermaßen hinzugefügt: 

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

 

Die app.js sieht folgender Maßen aus: 

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;
    }
});

 

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


Viewing all articles
Browse latest Browse all 2871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>