# Backend Plugin - c is not a constructor

**URL:** <https://forum.shopware.com/t/backend-plugin-c-is-not-a-constructor/10527>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [18. Dezember 2012 um 12:36 UTC](https://forum.shopware.com/t/backend-plugin-c-is-not-a-constructor/10527 "2012-12-18T12:36:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bheider](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@bheider](https://forum.shopware.com/u/bheider)\
**Post date:** [18. Dezember 2012 um 12:36 UTC](https://forum.shopware.com/t/backend-plugin-c-is-not-a-constructor/10527/1 "2012-12-18T12:36:49Z")

</div>

Hallo, ich versuch mich gerade an einem Backen Plugin. Ich kann das Plugin installieren und auch ein Menüpunkt wird erzeugt. Sobald ich aber meine View öffnen will spuckt mir der FireBug folgenden Fehler aus. `c is not a constructor http://server/projekt/engine/Library/ExtJs/ext-all.js/eval/seq/2 Line 1` Ich versuch schon seit Stunden den Fehler in meinem Code zu finden, aber ich komm einfach nicht darauf. Kann mir vlt. jemand hier weiterhelfen? Vielen Dank Bootstrap.php `<?php class Shopware_Plugins_Backend_ArtikelSets_Bootstrap extends Shopware_Components_Plugin_Bootstrap
{
	public function install()
	{
        $this->subscribeEvent( 'Enlight\_Controller\_Dispatcher\_ControllerPath\_Backend\_ArtikelSets', 'onGetArtikelSetsController' ); $this-\>createMenuItem(array( 'label' =\> 'ArtikelSets', 'controller' =\> 'ArtikelSets', 'class' =\> 'sprite-application-block', 'action' =\> 'Index', 'active' =\> 1, 'parent' =\> $this-\>Menu()-\>findOneBy('label', 'Einstellungen') )); return array('success' =\> true, 'invalidateCache' =\> array('backend')); } public function onGetArtikelSetsController(Enlight\_Event\_EventArgs $args) { $this-\>Application()-\>Template()-\>addTemplateDir( $this-\>Path() . 'Views/', 'ArtikelSets' ); return $this-\>Path(). 'Controllers/Backend/ArtikelSets.php'; } } ` Controllers/Backend/ArtikelSets.php [code]\<?php class Shopware\_Controllers\_Backend\_ArtikelSets extends Shopware\_Controllers\_Backend\_ExtJs  
{

}  
?\>[/code] Views/backend/ArtikelSets/app.js ` //{block name="backend/ArtikelSets/application"} Ext.define('Shopware.apps.ArtikelSets', { name:'Shopware.apps.ArtikelSets', extend:'Enlight.app.SubApplication', bulkLoad:true, loadPath:'{url controller=ArtikelSets action=load}', controllers: ['Main'], views: ['main.Window'], launch: function() { var me = this, mainController = me.getController('Main'); return mainController.mainWindow; } }); //{/block} ` Views/backend/ArtikelSets/controller/main.js ` //{namespace name=backend/ArtikelSets/main} //{block name="backend/ArtikelSets/controller/main"} Ext.define('Shopware.apps.ArtikelSets.controller.Main', { extend:'Ext.app.Controller', init:function () { var me = this; me.getView('main.Window').create(); } }); //{/block} ` Views/backend/ArtikelSets/view/main/window.js ` //{namespace name=backend/ArtikelSets/main} //{block name="backend/ArtikelSets/view/main/window"} Ext.define('Shopware.apps.ArtikelSets.view.main.Window', { extend:'Enlight.app.Window', alias:'widget.ArtikelSets-main-window', border:false, autoShow:true, layout:'fit', width:1000, height:650, maximizable:true, minimizable:true, stateful:true, stateId:'shopware-ArtikelSets-main-window', title: '{s name=window\_title}ArtikelSets{/s}' }); //{/block} `
