There's a function built into the smarty class that allows you to fetch template variables.
Quote from the smarty documentation:
Quote:
array get_template_vars(string [varname]);
This returns the given assigned variable value. If no parameter is given, an array of
all assigned variables is returned.
Example : 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);
|
__________________
Nick
Running various versions of X-Cart Gold in various locations...
(when I have time, I\'ll make them all current, but by then x-cart 5.x.x will probably be out....)