Download! Contributed Code
Is Smarty right for me? Why use it? Crash Course Preface from docs Summary from docs Testimonials
Quick Install Documentation Sample Application Discussion Forums Internet Relay Chat Mailing Lists Smarty Wiki FAQ (from wiki) Other Resources
AOE media TYPO3 [be a sponsor!]
www.php.net www.phpinsider.com
Vote for Smarty!
Feel free to put in your rating or review of Smarty at HotScripts.com
Smarty Icon
You may only use the Smarty logo according to the trademark notice
Tell us about it!
Got some news for the front page? New articles, weblog discussions, public talks, etc? Let us know!
$security は TRUE または FALSE となり、 デフォルトは FALSE です。これは、 テンプレート言語によってシステムのセキュリティが脆弱になる危険性を減らしたい場合や、 (例えばFTPによって) テンプレートを編集するグループにあまり信用がおけない時に最適です。 セキュリティを有効にすると、 $security_settings によってオーバーライドされない限りは次の規則をテンプレート言語へ適用します。
If $php_handling が SMARTY_PHP_ALLOW に設定されていれば、 それを暗黙のうちに SMARTY_PHP_PASSTHRU に変更します。
PHP 関数を {if} ステートメント内で使用することができません。ただし $security_settings で指定されているものは除きます。
テンプレートは、 $secure_dir 配列に格納されているディレクトリからのみ取得できます。
ローカルファイルは、 $secure_dir 配列に格納されているディレクトリから {fetch} を使用することによってのみ取得できます。
{php}{/php} タグは使用できません。
PHP 関数を修飾子として使用することはできません。ただし $security_settings で指定されているものは除きます。