Re: [SMARTY] How to read a DB table from a template.
| From: | John Wards | Date: | Wed, 02 Oct 2002 09:11:41 +0000 |
| Subject: | Re: [SMARTY] How to read a DB table from a template. | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6072@lists.php.net to get a copy of this message | ||
On Wednesday 02 Oct 2002 9:36 am, Simone wrote:
> So i can't write
>
> If ($Lang = 'IT') then
> read all the italian voices from the DB
> If ($Lang = 'EN') then
> read all the English voices from the DB
>
Yes you can
{if $lang =='IT}
{/if}
where lang is a smarty var
JOhn