Re: [SMARTY] Using constants dynamically - Plugin?
| From: | messju mohr | Date: | Fri, 24 Jun 2005 11:36:05 +0000 |
| Subject: | Re: [SMARTY] Using constants dynamically - Plugin? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12738@lists.php.net to get a copy of this message | ||
On Fri, Jun 24, 2005 at 01:30:31PM +0200, Erik Schmitt wrote:
> Hello,
>
> I have a file with defined constants:
>
> - conf -------------------
> hello=Hallo
> sleep=schlafen
> - /conf ------------------
>
> And I want to access these dynamically like this:
>
> {foreach from=$values key=key item=item}
> {#$item#}
> {/foreach}
>
>
> Problem is that {#$item#} ends up with an error.
{$smarty.config.$item}
see TFM at http://smarty.php.net/manual/en/language.variables.smarty.php#language.variables.smarty.config
[...]