View Single Post
  #1  
Old 03-26-2004, 01:47 AM
 
Dion Jones Dion Jones is offline
 

Newbie
  
Join Date: Mar 2004
Location: staffordshire uk
Posts: 9
 

Default smarty template testing

Ok,
Newbie question but...
I am currently reading throught he smarty templates instruction book and have decided to test a couple of things out.

The first excercise is to see if smarty is working properly.
so I entered the following into the /customer/main/welcome.tpl:

$smarty->assign('name','dion');
<table border="0" cellpadding="2" cellspacing="0">
<tr>
<td>
Hello, {$name}!
</td>
</td>
</table>

Like it says in the book..
then it just displays the assign line and the name line without a name..
what am i doing wrong?

cheers.
__________________
Dion Jones,
Web Dev, Db admin
www.smallislandtrader.com
X-cart Ver. 3.5.4
o/s Windows2000
Reply With Quote