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:
Table of Contents
この定数には、Smarty のクラスファイルが置かれた場所への システム上でのフルパス を指定します。 定義されていない場合、Smarty は自動的に適切な値に決定しようと試みます。 定義した場合、必ずスラッシュで終わるようにします。
Example 11.1. SMARTY_DIR
<?php // Smartyのディレクトリパスを*nixスタイルでセットする define('SMARTY_DIR', '/usr/local/lib/php/Smarty-v.e.r/libs/'); // Smartyのパスをwindowsスタイルでセットする define('SMARTY_DIR', 'c:/webroot/libs/Smarty-v.e.r/libs/'); // 'S'が大文字であることに注意して、smartyクラスをインクルードします。 require_once(SMARTY_DIR . 'Smarty.class.php'); ?>
$smarty.const
および
$php_handling 定数
も参照ください。