Re: [SMARTY] CVS version and concatting strings
| From: | Nichlas Löfdahl | Date: | Mon, 27 Jan 2003 16:53:40 +0000 |
| Subject: | Re: [SMARTY] CVS version and concatting strings | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7344@lists.php.net to get a copy of this message | ||
Hi again!
By creating a modifier "strcat" I was able to get around this problem but I
really think Smarty should have complete
support for concatting strings.
There isn't a way to explicit tell the parser about variables in strings?
Like this in PHP:
"A nice string containing {$array[foo]}"
/Nichlas
----- Original Message -----
From: "Nichlas Löfdahl" <crotalus@acc.umu.se>
To: "Smarty (E-mail)" <smarty-general@lists.php.net>
Sent: Monday, January 27, 2003 5:33 PM
Subject: [SMARTY] CVS version and concatting strings
Greetings!
In Smarty 2.3.1 this kind of stuff worked:
{include file="include/table.ihtml" title="Table describing ".$foo[bar]}
This gives an error with the latest CVS-version.
I know I can do something like this:
{assign var=tmp value=$foo[bar]}
{include file="include/table.ihtml" title="Table describing $tmp"}
But is there an easier way to concat variables from an array?
/Nichlas