Re: [SMARTY] CVS version and concatting strings
| From: | Monte Ohrt | Date: | Mon, 27 Jan 2003 18:32:49 +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-7348@lists.php.net to get a copy of this message | ||
That's not officially supported/implemented. If it worked in 2.3.1 it
was by accident :)
You could use a modifier:
{include file="blah" title="Table describing"|concat:$foo[bar]}
Monte
On Mon, 2003-01-27 at 10:33, Nichlas Löfdahl wrote:
> 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
--
Monte Ohrt <monte@ispi.net>