Re: [SMARTY] Combining strings in function calls
| From: | Monte Ohrt | Date: | Mon, 16 Dec 2002 17:44:51 +0000 |
| Subject: | Re: [SMARTY] Combining strings in function calls | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6838@lists.php.net to get a copy of this message | ||
You have to embed vars in double quotes.
{myfunction var="$documentname/thumb"}
On Mon, 2002-12-16 at 10:34, Jan H. Andersen wrote:
> Hello,
>
> Is it possible to combine two strings when using them as a parameter for a
> function call. E.g.:
>
> {myfunction var=$documentname . '/thumb'} or {myfunction var=$documentname .
> $somethingelse}
>
> I can't find any smarty constructs or modifiers that will do this, and I've
> tried any possible combination that I can think of. I can of course just
> write a small modifier, but if it's already in smarty, I'll prefer to do it
> that way.
>
> Kindest regards,
>
> Jan
--
Monte Ohrt <monte@ispi.net>