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:
この定数には、Smarty のコアファイルの置かれた場所への
フルパス を指定します。定義されていない場合、Smartyは
SMARTY_DIR
.
の下の internals/
サブディレクトリをデフォルトとします。
定義した場合は、必ずスラッシュで終わるようにします。
手動で core.* ファイルをインクルードするような時にはこの定数を使用して下さい。
Example 11.2. SMARTY_CORE_DIR
<?php // core.get_microtime.php を読み込みます require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); ?>
$smarty.const
も参照してください。