Re: cycle? is it a bug.....
"messju mohr" <[email protected]> Sat, 30 Apr 2005 19:31:25 +0200
| Newsgroups | gmane.comp.php.smarty.devel |
|---|---|
| Message-ID | <20050430173125.GA25008@dune> |
On Sat, Apr 30, 2005 at 05:31:52PM +0100, pete M wrote:
> smarty configuration has this line
>
> $smarty->config_overwrite = false;
>
>
> from the config file
>
> cols = #ffffff
> cols = #ff00ff
> cols = #000000
>
>
> in the template
>
> {cycle values=#cols# name="foo"}
>
> returns
> #ffffff #ff00ff #000000 #ffffff #ff00ff #000000 #ffffff #ff00ff
>
>
> For some reason it doenst work when the name value is missing so
>
> {cycle values=#cols#}
>
> returns
> #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff
>
> is this a bug ?
works for me. omitting the name attribute is the same as setting
name="default". maybe you have already another cycle without name
(thus named "default") in your script and both reset each other
everytime they are called.
> Pete
>
> --
> Smarty Development Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php