Cái này chôm trên trang smarty đó. Thử xem.
file test.php
<?php
// put full path to Smarty.class.php
/* include smarty */
require('/Smarty/Smarty.class.php');
$smarty = new Smarty();
$smarty->template_dir = '/templates/'; //folder chứa file tpl
$smarty->compile_dir = '/smarty/templates_c/'; //folder chưa file tạm
2 cái này ko biết. Nhưng cần config nó sẽ báo lỗi
$smarty->cache_dir = '/smarty/cache';
$smarty->config_dir = '/smarty/configs';
//name là ten biến sẽ sử dụng trong file tpl
$smarty->assign('name', 'Ned');
$smarty->display('test.tpl');
?>
file test.tpl
<html>
<head>
<title>Smarty</title>
</head>
<body>
Hello, {$name}!
</body>
</html>
//out put Helol Ned
Chịu khó đọc document đi ko ai giúp dc đâu. Nếu ko muốn đọc document thì chi cần bỏ ra ít $$$ các cao thủ sẵn sàng dạy kèm hoặc làm dùm luôn

Smarty rất dễ. chỉ cần mất khoảng 3 ngày là bạn làm quen dc với nó ngay thôi. Đừng phí tiền nha.