# das smarty std. php-tag verboten?

**URL:** <https://forum.shopware.com/t/das-smarty-std-php-tag-verboten/9956>\
**Category:** Shopware 3.5\
**Tags:** themes--design\
**Created:** [19. November 2012 um 17:31 UTC](https://forum.shopware.com/t/das-smarty-std-php-tag-verboten/9956 "2012-11-19T17:31:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bui\_ak](https://avatars.discourse-cdn.com/v4/letter/b/c37758/32.png) [@bui\_ak](https://forum.shopware.com/u/bui_ak)\
**Post date:** [19. November 2012 um 17:31 UTC](https://forum.shopware.com/t/das-smarty-std-php-tag-verboten/9956/1 "2012-11-19T17:31:11Z")

</div>

hallo, [quote]Fatal error: Uncaught exception ‚SmartyCompilerException‘ with message ‚Syntax Error in template „/home/ak/WEB/shopware/4/templates/\_emotion/frontend/index/breadcrumb.tpl“ on line 2 „{php}“ unknown tag „php“‘ in …[/quote] habt ihr das disabled?

---

<div class="post-metadata">

**Author:** ![hbee](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hbee](https://forum.shopware.com/u/hbee)\
**Post date:** [19. November 2012 um 21:22 UTC](https://forum.shopware.com/t/das-smarty-std-php-tag-verboten/9956/2 "2012-11-19T21:22:40Z")

</div>

RTFM 😉 [quote] IMPORTANT NOTICE {php} tags are deprecated from Smarty, and should not be used. Put your PHP logic in PHP scripts or plugin functions instead. Note As of Smarty 3.1 the {php} tags are only available from SmartyBC. [/quote]

---

<div class="post-metadata">

**Author:** ![bui\_ak](https://avatars.discourse-cdn.com/v4/letter/b/c37758/32.png) [@bui\_ak](https://forum.shopware.com/u/bui_ak)\
**Post date:** [19. November 2012 um 22:15 UTC](https://forum.shopware.com/t/das-smarty-std-php-tag-verboten/9956/3 "2012-11-19T22:15:18Z")

</div>

lol, echt? das habe ich wohl verpasst 🙂 naja, schade. nun kann ich unseren designern wohl nicht mal eben mit einem quick&dirty heck aushelfen … ☹

---

<div class="post-metadata">

**Author:** ![hbee](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hbee](https://forum.shopware.com/u/hbee)\
**Post date:** [20. November 2012 um 10:11 UTC](https://forum.shopware.com/t/das-smarty-std-php-tag-verboten/9956/4 "2012-11-20T10:11:26Z")

</div>

ja, das haben die abgestellt. Macht ja auch irgendwo Sinn. Du könntest noch die SmartyBC einbinden aber das ist ja auch alles nur gefriggle…

---

<div class="post-metadata">

**Author:** ![bui\_ak](https://avatars.discourse-cdn.com/v4/letter/b/c37758/32.png) [@bui\_ak](https://forum.shopware.com/u/bui_ak)\
**Post date:** [21. November 2012 um 20:45 UTC](https://forum.shopware.com/t/das-smarty-std-php-tag-verboten/9956/5 "2012-11-21T20:45:35Z")

</div>

klar macht das sinn, daß php tag abzuschaffen. aber es gibt eben auch seltene fälle wo man mit dem tag elegant probleme lösen kann, die der designer gerade hat, ohne gleich ein plugin erstellen zu müssen. ähnlich wie goto. in den meisten fällen gehört das verboten, aber es gibt eben ausnahmen. und goto wurde zb. bei php erst in 5.3.0 eingeführt statt abgeschafft 😉
