# Template Code frage..

**URL:** <https://forum.shopware.com/t/template-code-frage/26016>\
**Category:** Themes & Design\
**Created:** [2. April 2015 um 11:36 UTC](https://forum.shopware.com/t/template-code-frage/26016 "2015-04-02T11:36:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benblub](https://avatars.discourse-cdn.com/v4/letter/b/ebca7d/32.png) [@benblub](https://forum.shopware.com/u/benblub)\
**Post date:** [2. April 2015 um 11:36 UTC](https://forum.shopware.com/t/template-code-frage/26016/1 "2015-04-02T11:36:30Z")

</div>

Kleine Frage, der untere Code unterscheidet ja nicht zwischen „alten“ und „neuen“ Ordner, ich nehme mal an der schnappt sich das responsive und kann nur für neue Templates verwendet werden? `if (Shopware()-\>Shop()-\>getTemplate()-\>getVersion() \< 3) { $controller-\>View()-\>addTemplateDir($this-\>Path() . 'Views/emotion/'); } else { $controller-\>View()-\>addTemplateDir($this-\>Path() . 'Views/responsive/'); }` `$view-\>addTemplateDir( \_\_DIR\_\_ . '/Views' );`
