# Templates von Plugins unter MAMP?

**URL:** https://forum.shopware.com/t/templates-von-plugins-unter-mamp/57920
**Category:** Programmierung
**Created:** [7. Februar 2019 um 13:54 UTC](https://forum.shopware.com/t/templates-von-plugins-unter-mamp/57920 "2019-02-07T13:54:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)
#### Post date: [7. Februar 2019 um 13:54 UTC](https://forum.shopware.com/t/templates-von-plugins-unter-mamp/57920/1 "2019-02-07T13:54:28Z")

</div>

Habe heute mal ein Shopware Shop unter MAMP Umgebung installiert und wollte hier mal das Verhalten mit bestimmten Plugins testen. Hierbei ist mir aufgefallen, die Templates bei einem Plugin einfach nicht geladen werden. Im Plugin selber ist die Anweisung:

```
$this->container->get('template')->addTemplateDir( $this->getPath() . '/Resources/Views/' );
// oder auch
$this->container->get('template')->addTemplateDir( __DIR__. '/Resources/Views/' );

```

Auf einer Test-Umgebung im Web macht das keine Probleme. Lokal passiert hier einfach gar nichts.

**Wie kann ich das ganze so ändern, dass die Templates auch unter MAMP geladen werden?**

&nbsp;

---

<div class="post-metadata">

### Author: ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)
#### Post date: [7. Februar 2019 um 14:11 UTC](https://forum.shopware.com/t/templates-von-plugins-unter-mamp/57920/2 "2019-02-07T14:11:22Z")

</div>

Groß- und Kleinschreibung beachtet? Der Ordner „views“ wird gerne klein geschrieben.

Viele Grüße  
[https://www.digitvision.de](https://www.digitvision.de)

---

<div class="post-metadata">

### Author: ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)
#### Post date: [7. Februar 2019 um 14:16 UTC](https://forum.shopware.com/t/templates-von-plugins-unter-mamp/57920/3 "2019-02-07T14:16:39Z")

</div>

Nein. Das selbe Plugin funktioniert im Web tadelos. Im MAMP hingegen werden die Templates nicht geladen.

---

<div class="post-metadata">

### Author: ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)
#### Post date: [7. Februar 2019 um 14:35 UTC](https://forum.shopware.com/t/templates-von-plugins-unter-mamp/57920/4 "2019-02-07T14:35:53Z")

</div>

Was heißt “Nein”? Hast du es getestet?

Viele Grüße

---

<div class="post-metadata">

### Author: ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)
#### Post date: [7. Februar 2019 um 14:42 UTC](https://forum.shopware.com/t/templates-von-plugins-unter-mamp/57920/5 "2019-02-07T14:42:18Z")

</div>

Nein heißt, das ist nicht die Ursache - natürlich schon ausprobiert.
