assign('contents', $smarty->fetch('calculators.tpl')); $smarty->display('main.tpl'); ?>