Re: [SMARTY] Using constants dynamically - Plugin?

Boris Alet <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
Hello
i think the good syntax is
{#item#}
or
{$smarty.config.item}

bye
Boris

Erik Schmitt a écrit :
> 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.
> 
> I tried to use combine the eval()- and the 
> assign()-functions to get the desired result
> but nothing worked.
> 
> Can anyone give me a hint? Of course
> I could write block-plugin but I do not like
> the idea. I am looking for something very 
> easy with no "syntactical overhead".
> Is it possible to write a plugin that works 
> like {##$item##} on my own?
> 
> Thanks!
> Erik
> 

-- 
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.