Re: [SMARTY] recursive template
| From: | Monte Ohrt | Date: | Thu, 20 Mar 2003 18:24:43 +0000 |
| Subject: | Re: [SMARTY] recursive template | ||
| References: | 1 2 3 4 5 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8786@lists.php.net to get a copy of this message | ||
I think people are mislead by the use of backticks.
Backticks are used _only_ on variables that are imbedded in double
quotes, and are needed _only_ if the variable name contains special
chars such as brackets or periods.
So:
{foo bar="$blah.tpl"} <-- works fine, uses $blah as varname
{foo bar="$
blah.tpl"} <-- works, but backticks not necessary
{foo bar="$blah.tpl"} <-- now $blah.tpl is the varname
{foo bar=$blah} <-- will not work!!!
Monte
On Thu, 2003-03-20 at 12:16, Tom Sommer wrote:
> On 20 Mar 2003 18:38:01 +0100, Juzan Jean-Michel wrote:
>
>
> > // I don't know if loop=$yourarray[numloopparent].children work
> > // You can try loop=$yourarray[numloopparent].children
> > // Or assign child array before section {assign var=childarray
>
> It will work :)
>
> --
> Tom Sommer, Denmark
> www.tsn.dk - www.dreamcoder.dk
--
Monte Ohrt <monte@ispi.net>