[SMARTY] Using constants dynamically - Plugin?

From: Date: Fri, 24 Jun 2005 11:30:31 +0000
Subject: [SMARTY] Using constants dynamically - Plugin?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12737@lists.php.net to get a copy of this message
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

« previous php.smarty.general (#12737) next »