Re: [SMARTY-DEV] constants and cycle
| From: | Monte Ohrt | Date: | Fri, 04 Apr 2003 20:00:58 +0000 |
| Subject: | Re: [SMARTY-DEV] constants and cycle | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1079@lists.php.net to get a copy of this message | ||
Embedded variables with periods (.) must be escaped with backticks. In
your case, the variable imbedded is seen as $smarty, not
$smarty.const.AAA
Monte
On Fri, 2003-04-04 at 10:21, dt wrote:
> Hi!
>
> I have template like this:
> <smarty: cycle name=cycle1 values="$smarty.const.AAA, $smarty.const.BBB"
> print=false advance=false>
>
> The smarty compiler answer:
> *Fatal error*: Smarty: [in
> /mnt/cipelo/public_html/bug/cycleteszt/cycle.stm line 1]: syntax error:
> $smarty. is an unknown reference (Smarty_Compiler.class.php, line 1767)
> in */home/donci/php/Smarty-2.5.0-RC2/libs/Smarty_Compiler.class.php* on
> line *1820
>
> What's wrong?
>
> Donci
> *
--
Monte Ohrt <monte@ispi.net>