Re: [SMARTY] Using constants dynamically - Plugin?

"messju mohr" <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <20050624113605.GD31639@dune>
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

[...]

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.