This is the simple php example which is used for smarty forloop template.
<?php require './libs/Smarty.class.php'; $smarty = new Smarty; $smarty->template_dir = 'templates'; //$smarty->assign('name', 'World'); $smarty->display('forloop.tpl'); ?>