HI, danke für den Schnipsel. Das hat mich nun schon mal soweit gebracht, dass meine Methode ausgeführt wird. Ich bekomme im Backend aber dann folgenden Fehler:
Fehlermeldung: missing ; before statement
Stack-Trace
Ext.globalEval
meine app.js sieht so aus:
DATA HOSTED WITH ♥ BY PASTEBIN.COM - DOWNLOAD RAW - SEE ORIGINAL
/**
* Aquatuning Software Development - Cache Clear - Bootstrap
*
* @category Aquatuning
* @package Shopware\Plugins\AtsdCacheClear
* @copyright Copyright (c) 2015, Aquatuning GmbH
*/
// {namespace name="backend/hqs/app"}
Ext.define( "Shopware.apps.Hqs",
{
// name
name: "Shopware.apps.Hqs",
// parent
extend: "Enlight.app.SubApplication",
// bulkload
bulkLoad: true,
// loadpath
loadPath: '{url controller="Hqs" action="createArticlesImportFile"}',
// views
views:
[
],
// stores
stores:
[
],
// models
models:
[
],
// controllers
controllers:
[
"Main"
],
// launch the app
launch: function()
{
// get this
var me = this;
// get the controller
var mainController = me.getController( "Main" );
Shopware.Notification.createGrowlMessage(
"Alles klar!",
"Toll gemacht!.",
"HQS - Yay"
);
}
});
hast du überhaupt einen Main-Controller in deiner ExtJS-App? Sonst solltest du den Aufruf aus der “launch” Methode auch entfernen. Weiterhin ist die erste Zeile ein Copy&Paste-Fehler aus Aquatunings Beispiel:
DATA HOSTED WITH ♥ BY PASTEBIN.COM - DOWNLOAD RAW - SEE ORIGINAL
ist keine validate JS-Syntax :). Vermutlich hast du das nicht wirklich übernommen - aber ich wollte drauf hingewiesen haben zur Sicherheit