clear_assign('params'); return $content; } extract($params); $param = array(); $i = 0; foreach ($nums as $num) { $param[$i] = $data[$num]; $i++; } $smarty->assign('params', $param); return true; } ?>