RE: [SMARTY-DEV] Re: constants and cycle
| From: | Monte Ohrt | Date: | Fri, 04 Apr 2003 21:54:07 +0000 |
| Subject: | RE: [SMARTY-DEV] Re: constants and cycle | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1089@lists.php.net to get a copy of this message | ||
{cycle values=#var#}
or,
{$cycle values="one,two,$
smarty.config.var"}
Monte
On Fri, 2003-04-04 at 15:50, Steve wrote:
> On this topic, how do I use a config variable in the cycle function? I've
> tried several things and haven't figured it out yet..
>
> -----Original Message-----
> From: Tom Sommer [mailto:webmaster@tsn.dk]
> Sent: Friday, April 04, 2003 1:39 PM
> To: smarty-dev@lists.php.net
> Subject: Re: [SMARTY-DEV] Re: constants and cycle
>
>
> On 04 Apr 2003 15:32:32 -0600, Monte Ohrt wrote:
>
> > If you have a better alterntive, please speak up! :-)
>
> I was thinking the way MySQL uses backtrick's
>
> I would include the $, seems more logical to me
>
> "hello, $this.is.my.var, what do you think?"
> "hello, $this.is.my.var, what do you think?"
>
> Same goes for general PHP escaping from a <<<
>
> $s = <<<THIS
> <test>{$my.var}</test>
> THIS;
>
> and not
>
> $s = <<<THIS
> <test>${my.var}</test>
> THIS;
>
> --
> Tom Sommer, Denmark
> www.tsn.dk - www.dreamcoder.dk
>
> --
> Smarty Development Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Monte Ohrt <monte@ispi.net>