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