From dc0453b60ae949ca01b51f64c13f55e54f150a2a Mon Sep 17 00:00:00 2001 From: Stan Pinte Date: Mon, 23 Jan 2006 13:45:57 +0000 Subject: [PATCH] Added smarty support --- html/test_smarty.php | 15 +++++++++++++++ templates/index.tpl | 9 +++++++++ 2 files changed, 24 insertions(+) create mode 100755 html/test_smarty.php create mode 100755 templates/index.tpl diff --git a/html/test_smarty.php b/html/test_smarty.php new file mode 100755 index 000000000..1e035f0d1 --- /dev/null +++ b/html/test_smarty.php @@ -0,0 +1,15 @@ +template_dir = '../templates'; +$smarty->compile_dir = '../compile'; +$smarty->cache_dir = '../cache'; +$smarty->config_dir = '../configs'; + +$smarty->assign('name', 'Stan'); +$smarty->display('index.tpl'); + +?> + diff --git a/templates/index.tpl b/templates/index.tpl new file mode 100755 index 000000000..670da75a0 --- /dev/null +++ b/templates/index.tpl @@ -0,0 +1,9 @@ + + +Smarty + + +Hello, {$name}! + + +