Re: php smarty example



Why double-post?

$smarty = new Smarty();
$smarty->assign("test","This is a test and should work!");
$smarty->compile_dir="compile";
$smarty->template_dir = "templates"
$smarty->display("main.tpl");

then, in templates/main.tpl , do this:
<p>A new message: <span style="color:red;">{$test}</span></p>
:)
This si very simple anyway

.