スマートアートのインストール
563 ワード
Smartyダウンロード: http://www.smarty.net/download
test.ファイルに「$test」と書いて、OK文字を出力します。smaryインストールに成功しました。
include_once('./Smarty-3.1.8/libs/Smarty.class.php');
$smarty = new Smarty();
$smarty -> template_dir = "./templates"; //
$smarty -> compile_dir = "./templates_c"; //
$smarty -> left_delimiter = "{"; //
$smarty -> right_delimiter = "}"; //
$smarty -> assign('test','OK');
$smarty -> display('test.html');
テンプレートディレクトリにtestを作成します。test.ファイルに「$test」と書いて、OK文字を出力します。smaryインストールに成功しました。