Thread: variable values
View Single Post
  #9  
Old 08-26-2004, 01:31 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Look at skin1/customer/categories.tpl

You'll see a capture start:

Code:
{capture name=menu}

A bunch of junk in the middle, and then a capture end:

Code:
{/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }


This code calls menu.tpl and passes the variable menu_title to it.

Menu.tpl then puts a frame around all the junk between capture start and capture end using the menu_title variable that's passed to it.

Make sense?
Reply With Quote