RE: [SMARTY] Concatenating strings and or vars

From: Date: Thu, 29 Aug 2002 11:57:47 +0000
Subject: RE: [SMARTY] Concatenating strings and or vars
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5870@lists.php.net to get a copy of this message
I've done the following (didn't see any alternatives in the manual, somebody else please let me know if this is horribly wrong): {capture name=somevar}{$var1}{$var2}text{$var3}{/capture} basically equilivent to: $somevar = $var1.$var2."text".$var3; then $smarty.capture.somevar has the concatenated strings... -- Josh -----Original Message----- From: Arjen Brouwer [mailto:arjen@btt.myweb.nl] Sent: Tuesday, August 27, 2002 12:03 PM To: smarty-general@lists.php.net Subject: [SMARTY] Concatenating strings and or vars Hi, Is it possible to concat two strings with smarty or vars something like: {assign var="data" value="name: " . $name} {$data} I know you can do it with {php}, but since I want to disable it ... Who can help me? mzzls Arjen.

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