Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty

Advertisement

$php_handling

Definiert wie Smarty mit PHP-Code innerhalb von Templates umgehen soll. Es gibt 4 verschiedene Einstellungen. Die Voreinstellung ist SMARTY_PHP_PASSTHRU verwendet. Achtung: '$php_handling' wirkt sich NICHT auf PHP-Code aus, der zwischen {php}{/php} Tags steht.

  • SMARTY_PHP_PASSTHRU - Smarty gibt die Tags aus.

  • SMARTY_PHP_QUOTE - Smarty maskiert die Tags als HTML-Entities.

  • SMARTY_PHP_REMOVE - Smarty entfernt die Tags.

  • SMARTY_PHP_ALLOW - Smarty führt den Code als PHP-Code aus.

ACHTUNG: Es wird dringend davon abgeraten, PHP-Code in Templates einzubetten. Bitte verwenden Sie stattdessen custom functions oder Variablen-Modifikatoren.