Re: [SMARTY-DEV] Re: [Smarty 2.3.1] Problems with append

From: Date: Tue, 24 Dec 2002 15:47:24 +0000
Subject: Re: [SMARTY-DEV] Re: [Smarty 2.3.1] Problems with append
References: 1 2 3  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-488@lists.php.net to get a copy of this message
I'll update the manual. Smarty doesn't directly support catenation. One solution would be a modifier: {$myvar|cat:"foobar"} then if you want to assign the new data: {assign var=$myvar value=$myvar|cat:"foobar"} On Tue, 2002-12-24 at 09:03, Slawomir Pucia wrote: > > append() is used to append a value to the end of an assigned array. If > > you append a value to a string, the string is converted to an array and > > the new value is appended. > > The manual says... > "This is used to append data to variables in the template." > ...nothing less nothing more. It's not clear then. > > So, is there a possibility to append a string to {$VARIABLE} which is also a > simple string? > > thanks for your help, > slawek- -- Monte Ohrt <monte@ispi.net>

« previous php.smarty.dev (#488) next »