get_template_vars
array
get_template_vars ( [string varname])
Isso retorna o valor de uma variável fixada. Se nenhum parâmetro é dado, um array de todas as variávels fixadas é retornado.
Exemplo 13-17. get_template_vars
// get assigned template var 'foo'
$foo = $smarty->get_template_vars('foo');
// get all assigned template vars
$tpl_vars = $smarty->get_template_vars();
// take a look at them print_r($tpl_vars);
|
|