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:
これは、デフォルトのテンプレートディレクトリの名前です。
ファイルのインクルード時にリソースの種類を指定しなかった場合は、
このディレクトリから探します。デフォルトは
./templates
で、
これは、実行しているスクリプトと同じ場所にある
templates/
ディレクトリを探すということです。
$template_dir にはディレクトリのパスの配列を渡すこともできます。
Smarty は、ディレクトリを順に走査し、
マッチするテンプレートが最初に見つかった時点で停止します。
このディレクトリをwebサーバのドキュメントルート下に置く事を推奨しません。