Trong file test ở bài 1 mình đã tạo, giờ thay đỏi tí thôi
<?php
require 'libs/Smarty.class.php';
$smarty = new Smarty;
$smarty->assign('title','Contact Detail');
$smarty->assign('contact',array('id'=>1,
'name'=>'smagic39',
'email'=>'smagic39 chấm cơm chấm gạo',
'phone'=>'99999999999'
));
$smarty->display('test.tpl');
?>
