Thread: New template
View Single Post
  #2  
Old 03-31-2003, 05:01 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

if for instance your php file had a query in it like:

$results=func_query(blah blah);

$smarty->assign("myquery",$results);

You need to access the elements of the results array similar to the way it is done with products or categories

ie
include the file:
{ include file="mytemplate.tpl" }

then put in a section:
{section name=myquery loop=$myquery}

then within this section (dont forget to close it at the end) put in something like:

{$myquery.fieldname}

or something fairly similar.
__________________
ex x-cart guru
Reply With Quote