# Was ist der Template scope?

**URL:** <https://forum.shopware.com/t/was-ist-der-template-scope/19088>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [15. März 2014 um 20:51 UTC](https://forum.shopware.com/t/was-ist-der-template-scope/19088 "2014-03-15T20:51:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![keksterrrrr](https://avatars.discourse-cdn.com/v4/letter/k/45deac/32.png) [@keksterrrrr](https://forum.shopware.com/u/keksterrrrr)\
**Post date:** [15. März 2014 um 20:51 UTC](https://forum.shopware.com/t/was-ist-der-template-scope/19088/1 "2014-03-15T20:51:04Z")

</div>

Hallo community, ich habe in /Controller/Frontend/Account.php in der preDispatch() Methode folgendes gefunden: ` $this-\>View()-\>setScope(Enlight\_Template\_Manager::SCOPE\_PARENT); ` Was genau passiert hier? Warum wird das gemacht? Gruß

---

<div class="post-metadata">

**Author:** ![rs2487](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/rs2487/32/13703_2.png) [@rs2487](https://forum.shopware.com/u/rs2487)\
**Post date:** [3. Mai 2016 um 12:35 UTC](https://forum.shopware.com/t/was-ist-der-template-scope/19088/2 "2016-05-03T12:35:00Z")

</div>

@[keksterrrrr](http://forum.shopware.com/profile/12370/keksterrrrr)

das würde mich auch interessieren…

Gruß
