Re: [SMARTY-DEV] Re: Var Templates
| From: | Tom Sommer | Date: | Wed, 16 Apr 2003 20:37:57 +0000 |
| Subject: | Re: [SMARTY-DEV] Re: Var Templates | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1209@lists.php.net to get a copy of this message | ||
On Wed, 16 Apr 2003 16:29:50 -0400, Paul Lockaby wrote:
> Ok, there is an easy solution to this problem. I registered sprintf as a
> modifier in PHP. You make your config var like this:
> myvar = hello %s, welcome
> Then you just have your template do this:
> {assign var=value1 value="hello"}
> {$myvar|sprintf:$value1}
> Is that what you're talking about?
Interesting idea, and properly the most acceptable so far, in my eyes :)
But lets see if Boots and I can change the world, before I end my quest.
Thank you for your suggestion, Paul :)
--
Tom Sommer, Denmark
www.tsn.dk - www.dreamcoder.dk