# artikelkategorie baum in backend statistik plugin

**URL:** https://forum.shopware.com/t/artikelkategorie-baum-in-backend-statistik-plugin/35839
**Category:** Programmierung
**Created:** [7. April 2016 um 11:21 UTC](https://forum.shopware.com/t/artikelkategorie-baum-in-backend-statistik-plugin/35839 "2016-04-07T11:21:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wontfix](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@wontfix](https://forum.shopware.com/u/wontfix)
#### Post date: [7. April 2016 um 11:21 UTC](https://forum.shopware.com/t/artikelkategorie-baum-in-backend-statistik-plugin/35839/1 "2016-04-07T11:21:34Z")

</div>

in frontend geht diese (von sExport.php geklaut):

```
$breadcrumb = array_reverse(Shopware()->Modules()->sCategories()->sGetCategoriesByParent($categoryID));
foreach ($breadcrumb as $breadcrumbObj) {
    $breadcrumbs[] = $breadcrumbObj["name"];
}
return implode(">", $breadcrumbs);

```

aber in mein backend statistik plugin meckert es:

```
Fatal error: Uncaught exception 'Exception' with message 'Resource "shop" not found failure' in /foo/engine/Shopware/Components/DependencyInjection/Container.php:192 Stack trace: #0 /foo/engine/Shopware/Bootstrap.php(131): Shopware\Components\DependencyInjection\Container->get('Shop') #1 /foo/engine/Shopware/Application.php(166): Shopware_Bootstrap->getResource('Shop') #2 /foo/engine/Shopware/Core/sCategories.php(119): Shopware->Shop() #3 /foo/engine/Shopware/Components/Modules.php(73): sCategories->__construct() #4 /foo/engine/Shopware/Components/Modules.php(95): Shopware_Components_Modules->loadModule('sCategories') #5 /foo/engine/Shopware/Components/Modules.php(141): Shopware_Components_Modules->getModule('sCategories') #6 /foo/engine/Shopware/Plugins/Local/Backend/FoobarStatistik/Controllers/Backend/FoobarStatistik.ph in /foo/engine/Shopware/Components/DependencyInjection/Container.php on line 192

```

wat ist los?  
gibts was besseres für weniger?
