What is Smarty?
Why use it?
Use Cases and Work Flow
Syntax Comparison
Template Inheritance
Best Practices
Crash Course
You may use the Smarty logo according to the trademark notice.
For sponsorship, advertising, news or other inquiries, contact us at:
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.