This is the simple php example which is used for smarty iteration template.
<?php require './libs/Smarty.class.php'; $smarty = new Smarty; $smarty->template_dir = 'templates'; $id = range(3000,3050); $smarty->assign('arr',$id); $smarty->display('iteration.tpl'); ?>