Re: include with variable parameters
| From: | Andrei Zmievski | Date: | Fri, 23 Mar 2001 14:34:15 +0000 |
| Subject: | Re: include with variable parameters | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-408@lists.php.net to get a copy of this message | ||
On Fri, 23 Mar 2001, Marc Logemann wrote:
> Hi,
>
> first of all, thx for such a nice piece of template software, its by far the best
> php template engine in town.
Thanks.
> But i have one problem, how can i do something like this:
>
> {include file="_tc9.tpl" r1="{$inhalt1/td.userid}"}
>
> I need to pass parameters which are not static.
Just do:
{include file="_tc9.tpl" r1=$inhalt1/td.userid}
You can pass any variable to included file (except for one named 'file',
because it's used by the include itself).
-Andrei
'Any given program, when running correctly, is obsolete.'
- First Law of Computer Programming