?
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
This tells Smarty how to handle PHP code embedded in the
templates. There are four possible settings, default being
SMARTY_PHP_PASSTHRU. Note that this does NOT affect php code
within {php}{/php}
tags in the template.
該變量告訴Smarty怎樣處理嵌入到模版中的php代碼.有四種可能的設(shè)置,默認(rèn)為SMARTY_PHP_PASSTHRU.注意:改變量的設(shè)置不會(huì)影響模板里面{php}{/php}標(biāo)記中的php代碼.
SMARTY_PHP_PASSTHRU - Smarty echos tags as-is.Smarty
原樣輸出標(biāo)記.
SMARTY_PHP_QUOTE - Smarty quotes the tags as
html entities.Smarty
作為html實(shí)體引用標(biāo)記
SMARTY_PHP_REMOVE - Smarty removes the tags from
the templates.Smarty
從模板中移出標(biāo)記.
SMARTY_PHP_ALLOW - Smarty will execute the tags
as PHP code.Smarty
將作為php代碼執(zhí)行標(biāo)記.
NOTE: Embedding PHP code into templates is highly discouraged.
Use custom functions or
modifiers instead.
極度不贊成將php代碼嵌入到模板中.