View Single Post
  #1  
Old 03-25-2006, 09:42 AM
 
jherzog jherzog is offline
 

Advanced Member
  
Join Date: Jan 2006
Posts: 93
 

Default Passing Variables between tpl files.

I think this is a basic question. I know php well but not smarty.

Any given X-Cart page loads many tpl files, which can be identified in the debug console.

If I assign a variable in a tpl file.

Code:
{assign var="VarName" value="MyValue"}

and the wish to call that variable in a different tpl that is loaded later it does not seem to be there.

If these tpls are loaded just like standard php includes this should work, but it doesn't.

The only two things I can think of is that these tpls are not loaded like standard php includes or the Debug console is not listing the tpls in the order they are loaded.

Any suggestions? Thank you.

Jed
__________________
Jed Herzog
Gold X-Cart 4.0.17
http://www.outliersolutions.com
Portland Advertising Agency,
Portland Web Design
Reply With Quote