RE: [SMARTY] Using PHP variables in smarty control structures
| From: | Gary Loescher | Date: | Wed, 02 Oct 2002 02:55:34 +0000 |
| Subject: | RE: [SMARTY] Using PHP variables in smarty control structures | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6065@lists.php.net to get a copy of this message | ||
Try separating the languages into different config
files in different subdirectories, i.e.
<config dir>/en/index.cfg
Assign the language to $lang, then try something like
this (not tested):
{config_load file="$lang/index.cfg"}
HTH,
Gary
>-----Original Message-----
>From: Brodie Thiesfield [mailto:bt@jellycan.com]
>Sent: Tuesday, October 01, 2002 9:42 PM
>To: smarty-general@lists.php.net
>Subject: [SMARTY] Using PHP variables in smarty control structures
>
>
>Hi,
>
>I'm trying to use a PHP variable to control the section for the
>include_config directive within the template file. I have tried the
>following methods so far...
>
<snip>