assign('project', $project); $smarty->assign('detail', $detail); $smarty->display('portfolio.tpl'); ?>