Re: include with variable parameters

From: Date: Fri, 23 Mar 2001 14:26:53 +0000
Subject: Re: include with variable parameters
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-407@lists.php.net to get a copy of this message
Hi Marc, First of all, parameter values of functions should not be in braces, and variables should not be in quotes. The correct syntax would look like this: {include file="_tc9.tpl" r1=$inhalt1/td.userid} Now as for the dynamic variable name, I think Andrei has done something about this for the next release. I'll let him explain. 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. > > 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. > > thx for info on this. > > ----------------------- > Marc Logemann > Morelogs GmbH & Co. KG > Chief Software Architect > ----------------------- > > Besuchen Sie uns auf der Cebit 2001 > Halle 6 Stand C32 > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

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