Mortfiles Posted November 1, 2009 Share Posted November 1, 2009 I am trying to set up a custom page for downloads and I need a hand understanding the setup for the variables so I can use them in the new page. # To assign variables in Smarty use the following syntax.# This can then be used as {$variablename} in the template $smartyvalues["variablename"] = $value; Could someone give an example on this? The template is very basic and looks like this: <p>{$LANG.clientareaheader}</p> <h2>{$LANG.clientareafiles}</h2> <table width="100%" border="0" align="center" cellpadding="10" cellspacing="0" class="data"> <tr> <th>{$LANG.clientareafilesdate}</th> <th>{$LANG.clientareafilesfilename}</th> </tr> {foreach key=num item=file from=$files} <tr> <td>{$file.date}</td> <td><img src="images/file.png" hspace="5" align="middle" alt="" /> <a href="dl.php?type=f&id={$file.id}"><strong>{$file.title}</strong></a></td> </tr> {/foreach} </table> 0 Quote Link to comment Share on other sites More sharing options...
magga Posted November 1, 2009 Share Posted November 1, 2009 Which bit are you stuck on exactly? 0 Quote Link to comment Share on other sites More sharing options...
Mortfiles Posted November 1, 2009 Author Share Posted November 1, 2009 Making sure the smarty variables work by assigning them to $smartyvalues["variablename"] = $value; Otherwise there are no output 0 Quote Link to comment Share on other sites More sharing options...
Mortfiles Posted November 2, 2009 Author Share Posted November 2, 2009 No one knows? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.