function smarty_function_get_last($params, &$smarty) { $last = nodes::GetLast($params); $smarty->assign('get_last', $last); }