View Single Post
  #3  
Old 02-19-2011, 11:47 PM
  enterfusion's Avatar 
enterfusion enterfusion is offline
 

Advanced Member
  
Join Date: Mar 2004
Location: Pittsburg, CA
Posts: 70
 

Default Re: Smarty variable to {php}{/php} section

The recommended method is here:

// get assigned template var 'foo'
$myVar = $smarty->get_template_vars('foo');

// get all assigned template vars
$all_tpl_vars = $smarty->get_template_vars();

// take a look at them
print_r($all_tpl_vars);

http://www.smarty.net/docsv2/en/api.get.template.vars
__________________
-Eric

X-cart 4.3.2 up and running.
Apache, PHP 5.2, APC, Redhat, Checkout One, On Sale, Smart Search, Remember Cart.
Lots of other customization's, but perhaps typical of x-cart installations.

X-cart 5 sort of in limbo, trying to make things work without much luck.
Reply With Quote